From e1e974c196c66cf9c3776c6d7358fe972b9c8e2e Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Thu, 15 Jan 2009 15:03:18 +0000 Subject: [PATCH] This may actually knock out our settings problem for good. --- game/manage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/manage.py b/game/manage.py index 84c37286f9..94a14e323a 100755 --- a/game/manage.py +++ b/game/manage.py @@ -1,7 +1,6 @@ #!/usr/bin/env python import sys import os -from django.core.management import execute_manager # Tack on the root evennia directory to the python path. sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) @@ -15,6 +14,7 @@ if not os.path.exists('settings.py'): f = open('settings.py', 'w') f.write('"""\nMaster server configuration file. You may override any of the values in the\nsrc/config_defaults.py here. Copy-paste the variables here, and make changes to\nthis file rather than editing config_defaults.py directly.\n"""\n') f.write('from src.config_defaults import *') + f.close() try: from game import settings @@ -24,4 +24,5 @@ except ImportError: sys.exit(1) if __name__ == "__main__": + from django.core.management import execute_manager execute_manager(settings)