Fixing startup script.

This commit is contained in:
Greg Taylor 2008-12-15 16:26:37 +00:00
parent f0f31a9a69
commit 7b77b936ca
2 changed files with 3 additions and 4 deletions

View file

@ -13,7 +13,7 @@ basic stuff.
if not os.path.exists('settings.py'):
print "Can't find a settings.py file, creating one for you."
f = open('settings.py', 'w')
f.write('"""\rMaster server configuration file. You may override any of the values in the\rsrc/config_defaults.py here. Copy-paste the variables here, and make changes to\rthis file rather than editing config_defaults.py directly.\r"""\r')
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 *')
try:

View file

@ -14,10 +14,9 @@
init () {
## Sets environmental variables and preps the logs.
export PYTHON_PATH=".."
export PYTHONPATH="..":$PYTHONPATH
export DJANGO_SETTINGS_MODULE="game.settings"
GAME_DIR=`python -c "import settings; print settings.GAME_DIR"`
mv -f $GAME_DIR/logs/evennia.log $GAME_DIR/logs/evennia.logs.old
mv -f logs/evennia.log logs/evennia.logs.old
}
startup_interactive() {