Skip to content

Commit fbde840

Browse files
Merge pull request #157 from clayote/master
2 parents aacaa32 + 154cc76 commit fbde840

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/pipupgrade/_pip.py

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

src/pipupgrade/commands/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def _command(*args, **kwargs):
144144
cli.echo(cli_format("Checking...", cli.YELLOW), file = file_)
145145

146146
pip_path = a.pip_path or [ ]
147-
pip_path = [which(p) for p in pip_path] or _pip._PIP_EXECUTABLES
147+
pip_path = ['"' + which(p) + '"' for p in pip_path] or _pip._PIP_EXECUTABLES
148148

149149
logger.info("`pip` executables found: %s" % pip_path)
150150

0 commit comments

Comments
 (0)