Changing all text files to explicitly have .txt endings. This helps online code browsers to properly identify the files.

This commit is contained in:
Griatch 2012-09-02 13:05:47 +02:00
parent af99a80b4b
commit 056fee5c70
8 changed files with 18 additions and 5 deletions

View file

View file

@ -15,7 +15,7 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Get Evennia version
#------------------------------------------------------------
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())
f.close()
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.
print """
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}
#------------------------------------------------------------

View file

@ -337,7 +337,7 @@ RSS_ENABLED=False
RSS_UPDATE_INTERVAL = 60*10 # 10 minutes
######################################################################
# PROCPOOL setup
# Process Pool setup
######################################################################
# Activates the Twisted AMPoule process pool. This creates a pool

View file

@ -248,7 +248,7 @@ def get_evennia_version():
Check for the evennia version info.
"""
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())
except IOError:
return "Unknown version"