From a2f84421791c12ca9743f4037546da740bd141a7 Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Tue, 17 Jul 2018 03:53:52 +0800 Subject: [PATCH] We DONT want sys.executable when searching sys.executable should be the last resort if the user gives us nothing. If we are given ANYTHING, we should avoid using sys.executable. --- pipenv/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/core.py b/pipenv/core.py index 7d7a855b..873d1ff1 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -319,7 +319,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=True, global_search=True) + finder = Finder(system=False, global_search=True) python_entry = None if not python: return None