From 216f639ae25fe8e56ce138e079b2b2ace5fff2fd Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Tue, 17 Jul 2018 22:13:24 +0800 Subject: [PATCH] Don't process the py line twice --- pipenv/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/core.py b/pipenv/core.py index 7992797f..c3bf6612 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -335,7 +335,7 @@ def find_a_system_python(line): if ((line.startswith("py ") or line.startswith("py.exe ")) and os.name == 'nt'): line = line.split(" ", 1)[1].lstrip("-") - if line.startswith("py"): + elif line.startswith("py"): python_entry = finder.which(line) if python_entry: return python_entry.path.as_posix()