From cc9c5a3ff8fecd6dbcae466af38a4f288fb78f53 Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Tue, 17 Jul 2018 02:58:37 -0400 Subject: [PATCH] Strip dashes from `py -n` commands Signed-off-by: Dan Ryan --- pipenv/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/core.py b/pipenv/core.py index 2fc60b45..f32230bc 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -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: