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.
This commit is contained in:
Tzu-ping Chung
2018-07-17 03:53:52 +08:00
committed by Dan Ryan
parent 9cb3f970bd
commit a2f8442179
+1 -1
View File
@@ -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