From d5cebedee8146cd36acd8025f29571ace9f0dd79 Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Sat, 14 Jul 2018 19:29:05 +0800 Subject: [PATCH] Keep logic of using actual Python commands --- pipenv/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pipenv/core.py b/pipenv/core.py index 13793331..b059ddc9 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -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)