Make sure to initialize evennia.init() when using 'evennia shell'
This commit is contained in:
parent
b3c8a37f89
commit
f3dbf1dad9
1 changed files with 7 additions and 1 deletions
|
|
@ -943,9 +943,15 @@ def main():
|
||||||
server_operation(option, service, args.interactive, args.profiler)
|
server_operation(option, service, args.interactive, args.profiler)
|
||||||
elif option != "noop":
|
elif option != "noop":
|
||||||
# pass-through to django manager
|
# pass-through to django manager
|
||||||
init_game_directory(CURRENT_DIR, check_db=False)
|
check_db = False
|
||||||
if option in ('runserver', 'testserver'):
|
if option in ('runserver', 'testserver'):
|
||||||
print WARNING_RUNSERVER
|
print WARNING_RUNSERVER
|
||||||
|
if option == "shell":
|
||||||
|
# to use the shell we need to initialize it first,
|
||||||
|
# and this only works if the database is set up
|
||||||
|
check_db = True
|
||||||
|
init_game_directory(CURRENT_DIR, check_db=check_db)
|
||||||
|
|
||||||
args = [option]
|
args = [option]
|
||||||
kwargs = {}
|
kwargs = {}
|
||||||
if service not in ("all", "server", "portal"):
|
if service not in ("all", "server", "portal"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue