mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Strip dashes from py -n commands
Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
+1
-1
@@ -334,7 +334,7 @@ def find_a_system_python(line):
|
||||
finder = Finder(system=False, global_search=True)
|
||||
if ((line.startswith("py ") or line.startswith("py.exe "))
|
||||
and os.name == 'nt'):
|
||||
line = line.split(" ", 1)[1]
|
||||
line = line.split(" ", 1)[1].lstrip("-")
|
||||
if line.startswith("py"):
|
||||
python_entry = finder.which(line)
|
||||
if python_entry:
|
||||
|
||||
Reference in New Issue
Block a user