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:
parent
fd380a2d4a
commit
6c325725b0
@ -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…
x
Reference in New Issue
Block a user