Added os.path.expanduser when searching for pip executable.

reviewable/pr18780/r1
Florian Apolloner 10 years ago
parent adfcfa4b58
commit 7f4f89abda

@ -179,6 +179,7 @@ def _get_pip(module, env=None, executable=None):
candidate_pip_basenames = ['pip', 'python-pip', 'pip-python'] candidate_pip_basenames = ['pip', 'python-pip', 'pip-python']
pip = None pip = None
if executable is not None: if executable is not None:
executable = os.path.expanduser(executable)
if os.path.isabs(executable): if os.path.isabs(executable):
pip = executable pip = executable
else: else:

Loading…
Cancel
Save