mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Merge pull request #3821 from danxshap/django_venv_expand_user
Use home path expansion for virtualenv param in django_manage module
This commit is contained in:
@@ -131,7 +131,7 @@ def _ensure_virtualenv(module):
|
|||||||
|
|
||||||
virtualenv = module.get_bin_path('virtualenv', True)
|
virtualenv = module.get_bin_path('virtualenv', True)
|
||||||
|
|
||||||
vbin = os.path.join(venv_param, 'bin')
|
vbin = os.path.join(os.path.expanduser(venv_param), 'bin')
|
||||||
activate = os.path.join(vbin, 'activate')
|
activate = os.path.join(vbin, 'activate')
|
||||||
|
|
||||||
if not os.path.exists(activate):
|
if not os.path.exists(activate):
|
||||||
|
|||||||
Reference in New Issue
Block a user