mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Added empty log dir (mercurial don't allow that normally), as well as fixed an issue with i18n when starting without a settings.py file.
This commit is contained in:
parent
dce64d8bd2
commit
ffeb1494cb
2 changed files with 6 additions and 5 deletions
0
game/logs/.empty
Normal file
0
game/logs/.empty
Normal file
|
|
@ -8,9 +8,6 @@ the database.
|
|||
import sys
|
||||
import os
|
||||
|
||||
# i18n
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
# Tack on the root evennia directory to the python path.
|
||||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
|
||||
|
|
@ -100,9 +97,13 @@ from src.settings_default import *
|
|||
settings_file.write(string)
|
||||
settings_file.close()
|
||||
|
||||
print _("""
|
||||
# obs - this string cannot be under i18n since settings didn't exist yet.
|
||||
print """
|
||||
Welcome to Evennia (version %(version)s)!
|
||||
We created a fresh settings.py file for you.""") % {'version': VERSION}
|
||||
We created a fresh settings.py file for you.""" % {'version': VERSION}
|
||||
|
||||
# i18n
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
#------------------------------------------------------------
|
||||
# Test the import of the settings file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue