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

pip module - expand user home directory variables in virtualenv parameter
reviewable/pr18780/r1
Michael DeHaan 12 years ago
commit 8a78af274a

1
pip

@ -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…
Cancel
Save