Fix search path

Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
Dan Ryan
2018-07-15 17:40:29 -04:00
parent 33328c435a
commit aeb07cdec0
+2 -1
View File
@@ -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()