mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Keep logic of using actual Python commands
This commit is contained in:
@@ -317,6 +317,10 @@ def ensure_pipfile(validate=True, skip_requirements=False, system=False):
|
||||
def find_a_system_python(python):
|
||||
if not python:
|
||||
return None
|
||||
if python.startswith("py"):
|
||||
return system_which(python)
|
||||
if os.path.isabs(python):
|
||||
return python
|
||||
from .vendor import pythonfinder
|
||||
finder = pythonfinder.Finder()
|
||||
python_entry = finder.find_python_version(python)
|
||||
|
||||
Reference in New Issue
Block a user