Skip to content

Commit

Permalink
Merge pull request #157 from clayote/master
Browse files Browse the repository at this point in the history
  • Loading branch information
achillesrasquinha authored Dec 17, 2024
2 parents aacaa32 + 154cc76 commit fbde840
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pipupgrade/_pip.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def _get_pip_executable(multiple = False):
exec_ = which(pip_)
if exec_:
if not multiple:
return exec_
return '"' + exec_ + '"'
else:
exec_ = osp.realpath(exec_)
exec_ = '"' + osp.realpath(exec_) + '"'
if exec_ not in execs:
execs.append(exec_)

Expand Down
2 changes: 1 addition & 1 deletion src/pipupgrade/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _command(*args, **kwargs):
cli.echo(cli_format("Checking...", cli.YELLOW), file = file_)

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

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

Expand Down

0 comments on commit fbde840

Please sign in to comment.