not Python

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-22 12:20:26 -04:00
parent bab1cb8cb8
commit 848a9f3069
+2 -1
View File
@@ -380,8 +380,9 @@ def ensure_python(three=None, python=None):
path_to_python = None
USING_DEFAULT_PYTHON = (three is None and not python)
print(locals())
# Load the PIPENV_DEFAULT_PYTHON_VERSION.
if PIPENV_DEFAULT_PYTHON_VERSION and three is None and python is None:
if PIPENV_DEFAULT_PYTHON_VERSION and three is None and not python:
python = PIPENV_DEFAULT_PYTHON_VERSION
# Find out which python is desired.