mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fixing startup script.
This commit is contained in:
parent
f0f31a9a69
commit
7b77b936ca
2 changed files with 3 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue