mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Added os.path.expanduser when searching for pip executable.
This commit is contained in:
committed by
Matt Clay
parent
21339664ce
commit
f07096bfe5
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user