From bab1cb8cb8666911061de1c7cc73201bb52897ae Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 22 Sep 2017 12:18:21 -0400 Subject: [PATCH] and Python is None Signed-off-by: Kenneth Reitz --- pipenv/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index 838a9808..64d753be 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -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.