Commit 08100bd7 by David Hughes

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

parent d0332a6c
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment