mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Expand any user home variable in pip module's virtualenv parameter
This commit is contained in:
parent
d0332a6c6d
commit
08100bd798
1 changed files with 1 additions and 0 deletions
|
@ -188,6 +188,7 @@ def main():
|
||||||
virtualenv_command = module.params['virtualenv_command']
|
virtualenv_command = module.params['virtualenv_command']
|
||||||
|
|
||||||
if env:
|
if env:
|
||||||
|
env = os.path.expanduser(env)
|
||||||
virtualenv = module.get_bin_path(virtualenv_command, True)
|
virtualenv = module.get_bin_path(virtualenv_command, True)
|
||||||
if not os.path.exists(os.path.join(env, 'bin', 'activate')):
|
if not os.path.exists(os.path.join(env, 'bin', 'activate')):
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
|
|
Loading…
Reference in a new issue