Changing all text files to explicitly have .txt endings. This helps online code browsers to properly identify the files.
This commit is contained in:
parent
af99a80b4b
commit
056fee5c70
8 changed files with 18 additions and 5 deletions
|
|
@ -15,7 +15,7 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
# Get Evennia version
|
# Get Evennia version
|
||||||
#------------------------------------------------------------
|
#------------------------------------------------------------
|
||||||
try:
|
try:
|
||||||
f = open(os.pardir + os.sep + 'VERSION', 'r''')
|
f = open(os.pardir + os.sep + 'VERSION.txt', 'r''')
|
||||||
VERSION = "%s-r%s" % (f.read().strip(), os.popen("hg id -i").read().strip())
|
VERSION = "%s-r%s" % (f.read().strip(), os.popen("hg id -i").read().strip())
|
||||||
f.close()
|
f.close()
|
||||||
except IOError:
|
except IOError:
|
||||||
|
|
@ -94,7 +94,11 @@ from src.settings_default import *
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# Config for Django web features
|
# Process Pool setup
|
||||||
|
######################################################################
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
# Django web features
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
@ -117,7 +121,16 @@ SECRET_KEY = '%s'
|
||||||
# obs - this string cannot be under i18n since settings didn't exist yet.
|
# obs - this string cannot be under i18n since settings didn't exist yet.
|
||||||
print """
|
print """
|
||||||
Welcome to Evennia (version %(version)s)!
|
Welcome to Evennia (version %(version)s)!
|
||||||
We created a fresh settings.py file for you.""" % {'version': VERSION}
|
|
||||||
|
This looks like your first startup so we created a fresh
|
||||||
|
game/settings.py file for you. No database has yet been created,
|
||||||
|
so you may configure your settings file now if you want. If you
|
||||||
|
are just playing around to test things out, you don't have to
|
||||||
|
touch anything.
|
||||||
|
|
||||||
|
(re)run 'python manage.py syncdb' once you are ready to continue.
|
||||||
|
|
||||||
|
""" % {'version': VERSION}
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------
|
#------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -337,7 +337,7 @@ RSS_ENABLED=False
|
||||||
RSS_UPDATE_INTERVAL = 60*10 # 10 minutes
|
RSS_UPDATE_INTERVAL = 60*10 # 10 minutes
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# PROCPOOL setup
|
# Process Pool setup
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
# Activates the Twisted AMPoule process pool. This creates a pool
|
# Activates the Twisted AMPoule process pool. This creates a pool
|
||||||
|
|
|
||||||
|
|
@ -248,7 +248,7 @@ def get_evennia_version():
|
||||||
Check for the evennia version info.
|
Check for the evennia version info.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
f = open(settings.BASE_PATH + os.sep + "VERSION", 'r')
|
f = open(settings.BASE_PATH + os.sep + "VERSION.txt", 'r')
|
||||||
return "%s-r%s" % (f.read().strip(), os.popen("hg id -i").read().strip())
|
return "%s-r%s" % (f.read().strip(), os.popen("hg id -i").read().strip())
|
||||||
except IOError:
|
except IOError:
|
||||||
return "Unknown version"
|
return "Unknown version"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue