From 4db4607ee532e2eaf54f0472070e1fccf8c6627c Mon Sep 17 00:00:00 2001 From: danxshap Date: Sun, 11 Aug 2013 14:02:13 -0700 Subject: [PATCH] use home path expansion for virtualenv param in django_manage module --- library/web_infrastructure/django_manage | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/web_infrastructure/django_manage b/library/web_infrastructure/django_manage index 2977147c1b6..898c840ef55 100644 --- a/library/web_infrastructure/django_manage +++ b/library/web_infrastructure/django_manage @@ -101,9 +101,9 @@ EXAMPLES = """ #Run syncdb on the application - django_manage: > - command=syncdb + command=syncdb app_path={{ django_dir }} - settings={{ settings_app_name }} + settings={{ settings_app_name }} pythonpath={{ settings_dir }} virtualenv={{ virtualenv_dir }} @@ -131,7 +131,7 @@ def _ensure_virtualenv(module): 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') if not os.path.exists(activate):