Expand any user home variable in pip module's virtualenv parameter

pull/2393/head
David Hughes 11 years ago
parent d0332a6c6d
commit 08100bd798

@ -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:

Loading…
Cancel
Save