Made Evennia launcher give better error if running outside of mygame (fix regression)
This commit is contained in:
parent
bb54ed75f7
commit
87c6c7d80a
1 changed files with 1 additions and 3 deletions
|
|
@ -1788,11 +1788,9 @@ def init_game_directory(path, check_db=True, need_gamedir=True):
|
||||||
else:
|
else:
|
||||||
os.environ["DJANGO_SETTINGS_MODULE"] = SETTINGS_DOTPATH
|
os.environ["DJANGO_SETTINGS_MODULE"] = SETTINGS_DOTPATH
|
||||||
|
|
||||||
# required since django1.7
|
|
||||||
django.setup()
|
|
||||||
|
|
||||||
# test existence of the settings module
|
# test existence of the settings module
|
||||||
try:
|
try:
|
||||||
|
django.setup()
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
if not str(ex).startswith("No module named"):
|
if not str(ex).startswith("No module named"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue