mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user