mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 21:47:17 +02: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
|
|
@ -1,5 +1,9 @@
|
|||
"""
|
||||
Central package for importing the default commands from the API.
|
||||
Groups all default commands for access from the API.
|
||||
|
||||
To use via ev API, import this module with
|
||||
from ev import default_cmds,
|
||||
you can then access the command classes as members of default_cmds.
|
||||
|
||||
"""
|
||||
from src.commands.default.cmdset_default import DefaultCmdSet
|
||||
|
|
@ -17,3 +21,7 @@ from src.commands.default.help import *
|
|||
from src.commands.default import syscommands
|
||||
from src.commands.default.system import *
|
||||
from src.commands.default.unloggedin import *
|
||||
|
||||
del cmdset_default, cmdset_ooc, cmdset_unloggedin, muxcommand
|
||||
del admin, batchprocess, building, comms, general,
|
||||
del help, system, unloggedin
|
||||
|
|
|
|||
|
|
@ -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