Browse Source

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

pull/1/head
Hidden Z 14 years ago
parent
commit
6c325725b0
  1. 2
      py-i2phosts-checker

2
py-i2phosts-checker

@ -30,7 +30,7 @@ if 'include' in config: @@ -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'

Loading…
Cancel
Save