summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorin Hochstein <lorin.hochstein@sendgrid.com>2014-11-22 20:59:36 -0500
committerLorin Hochstein <lorin.hochstein@sendgrid.com>2014-11-22 20:59:36 -0500
commitd7db09a0eb9d02adaabb0af7e167b9bdb9354644 (patch)
treee2f09b8cd86c78b8744aac1063bc0c83092a483c
parent19b328c4df2157b6c0191e9144236643ce2be890 (diff)
downloadansible-modules-core-d7db09a0eb9d02adaabb0af7e167b9bdb9354644.tar.gz
django_manage: expand ~ in app_path parameter
Allow users to specify app_path parameters that contain ~, for example: app_path=~/myproject
-rw-r--r--web_infrastructure/django_manage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_infrastructure/django_manage.py b/web_infrastructure/django_manage.py
index 580cc63c..424bf682 100644
--- a/web_infrastructure/django_manage.py
+++ b/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: