1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-02-02 01:44:40 +00:00

py-i2phosts-checker: properly check DJANGO_PROJECT_PATH variable in config

This commit is contained in:
Hidden Z 2010-10-30 17:35:19 +00:00
parent fd380a2d4a
commit 6c325725b0

View File

@ -30,7 +30,7 @@ if 'include' in config:
# django setup
DJANGO_SETTINGS_MODULE = 'settings'
if config['DJANGO_PROJECT_PATH']:
if 'DJANGO_PROJECT_PATH' in config:
DJANGO_PROJECT_PATH = config['DJANGO_PROJECT_PATH']
else:
DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/web'