Skip to content

Commit 154cc76

Browse files
committed
Fix pip executables showing up more than once
1 parent ec20d5b commit 154cc76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pipupgrade/_pip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ def _get_pip_executable(multiple = False):
4545
if not multiple:
4646
return '"' + exec_ + '"'
4747
else:
48-
exec_ = osp.realpath(exec_)
48+
exec_ = '"' + osp.realpath(exec_) + '"'
4949
if exec_ not in execs:
50-
execs.append('"' + exec_ + '"')
50+
execs.append(exec_)
5151

5252
if not execs: # pragma: no cover
5353
raise ValueError("pip executable not found.")

0 commit comments

Comments
 (0)