Don't process the py line twice

This commit is contained in:
Tzu-ping Chung
2018-07-17 22:13:24 +08:00
committed by Dan Ryan
parent 4b26aa8c9f
commit 216f639ae2
+1 -1
View File
@@ -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()