From f07096bfe510373687a336064000a96d87b34c0e Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Sun, 29 Mar 2015 21:06:36 +0200 Subject: [PATCH] Added os.path.expanduser when searching for pip executable. --- lib/ansible/modules/packaging/language/pip.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/packaging/language/pip.py b/lib/ansible/modules/packaging/language/pip.py index d9ecc17af64..a0c70c1a187 100644 --- a/lib/ansible/modules/packaging/language/pip.py +++ b/lib/ansible/modules/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: