1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #2393 from davehughes/pip-expand-virtualenv-path

pip module - expand user home directory variables in virtualenv parameter
This commit is contained in:
Michael DeHaan 2013-03-14 08:25:13 -07:00
commit e3e649a963

View file

@ -188,6 +188,7 @@ def main():
virtualenv_command = module.params['virtualenv_command']
if env:
env = os.path.expanduser(env)
virtualenv = module.get_bin_path(virtualenv_command, True)
if not os.path.exists(os.path.join(env, 'bin', 'activate')):
if module.check_mode: