From abf314c2587a301622f6df91f9178220a837217f Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Sat, 22 Nov 2014 20:59:36 -0500 Subject: [PATCH] django_manage: expand ~ in app_path parameter Allow users to specify app_path parameters that contain ~, for example: app_path=~/myproject --- lib/ansible/modules/web_infrastructure/django_manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/web_infrastructure/django_manage.py b/lib/ansible/modules/web_infrastructure/django_manage.py index 4dce581fa80..c5ca5a005b0 100644 --- a/lib/ansible/modules/web_infrastructure/django_manage.py +++ b/lib/ansible/modules/web_infrastructure/django_manage.py @@ -218,7 +218,7 @@ def main(): ) command = module.params['command'] - app_path = module.params['app_path'] + app_path = os.path.expanduser(module.params['app_path']) virtualenv = module.params['virtualenv'] for param in specific_params: