diff options
author | Florian Apolloner <apollo13@users.noreply.github.com> | 2015-03-29 21:06:36 +0200 |
---|---|---|
committer | Florian Apolloner <apollo13@users.noreply.github.com> | 2015-03-29 21:06:36 +0200 |
commit | 7f4f89abda4f81e44485925e45945dfec852bb79 (patch) | |
tree | 5118f086f046b7798e987ff1591600a5bb21df21 | |
parent | adfcfa4b5850cbc23b50f241a7cd51c38359df22 (diff) | |
download | ansible-modules-core-7f4f89abda4f81e44485925e45945dfec852bb79.tar.gz |
Added os.path.expanduser when searching for pip executable.
-rw-r--r-- | packaging/language/pip.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packaging/language/pip.py b/packaging/language/pip.py index d9ecc17a..a0c70c1a 100644 --- a/packaging/language/pip.py +++ b/packaging/language/pip.py @@ -179,6 +179,7 @@ def _get_pip(module, env=None, executable=None): candidate_pip_basenames = ['pip', 'python-pip', 'pip-python'] pip = None if executable is not None: + executable = os.path.expanduser(executable) if os.path.isabs(executable): pip = executable else: |