and Python is None

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-22 12:18:21 -04:00
parent f4b37d1ba7
commit bab1cb8cb8
+1 -1
View File
@@ -381,7 +381,7 @@ def ensure_python(three=None, python=None):
USING_DEFAULT_PYTHON = (three is None and not python)
# Load the PIPENV_DEFAULT_PYTHON_VERSION.
if PIPENV_DEFAULT_PYTHON_VERSION and three is None:
if PIPENV_DEFAULT_PYTHON_VERSION and three is None and python is None:
python = PIPENV_DEFAULT_PYTHON_VERSION
# Find out which python is desired.