From aeb07cdec03d20dcf98914aa124510049a7615c4 Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Sun, 15 Jul 2018 17:40:29 -0400 Subject: [PATCH] Fix search path Signed-off-by: Dan Ryan --- pipenv/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pipenv/core.py b/pipenv/core.py index 38cb5b7b..1a002dcd 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -318,7 +318,7 @@ def find_a_system_python(python): from .vendor.pythonfinder import Finder # system always refers to sys.executable, which could point at a virtualenv # for global searches we most likely want to turn that off - finder = Finder(system=False, global_search=True) + finder = Finder(system=True, global_search=True) if not python: return None # when using the python launcher on windows we can find the versions ourselves @@ -330,6 +330,7 @@ def find_a_system_python(python): return python_entry.path.as_posix() if os.path.isabs(python): return python + python_entry = finder.find_python_version(python) if python_entry: return python_entry.path.as_posix()