mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Don't process the py line twice
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user