mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 17:56:32 +01:00
Updated game/ for the ev API. There will likely be some changes happening in the game/folder, in the way new objects are inherited. This should use the API rather than inherit from the basecommand/baseobject modules (these will probably into the example folders as vanilla templates instead).
This commit is contained in:
parent
3466e406f6
commit
88c0087fbd
13 changed files with 66 additions and 43 deletions
|
|
@ -222,9 +222,10 @@ def get_evennia_version():
|
|||
"""
|
||||
Check for the evennia version info.
|
||||
"""
|
||||
version_file_path = "%s%s%s" % (settings.BASE_PATH, os.sep, "VERSION")
|
||||
try:
|
||||
return open(version_file_path).readline().strip('\n').strip()
|
||||
with open(settings.BASE_PATH + os.sep + "VERSION") as f:
|
||||
return "%s-r%s" % (f.read().strip(), os.popen("hg id -i").read().strip())
|
||||
return
|
||||
except IOError:
|
||||
return "Unknown version"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue