mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 03:57:17 +02:00
Show current revision on the 'version' command. Once we go to releases, this will be different, but for now it's informative for developers and early adopters. Assumes they have Subversion installed, otherwise the version is Unknown.
This commit is contained in:
parent
82f35f3b84
commit
3ad6a78281
1 changed files with 6 additions and 2 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import os
|
||||
|
||||
# Do not mess with the default types (0-5). This is passed to the Object
|
||||
# model's 'choices' argument.
|
||||
OBJECT_TYPES = (
|
||||
|
|
@ -37,10 +39,12 @@ NOSET_ATTRIBS = ["MONEY", "ALIAS", "LASTPAGED", "__CHANLIST", "LAST",
|
|||
HIDDEN_ATTRIBS = ["__CHANLIST", "__PARENT"]
|
||||
|
||||
# Server version number.
|
||||
REVISION = '$Rev$'
|
||||
REVISION = os.popen('svnversion .', 'r').readline().strip()
|
||||
if not REVISION:
|
||||
REVISION = "UNKNOWN"
|
||||
|
||||
# Clip out the SVN keyword information
|
||||
EVENNIA_VERSION = 'Alpha ' + REVISION[6:-2]
|
||||
EVENNIA_VERSION = 'Alpha ' + REVISION
|
||||
|
||||
# The message to show when the user lacks permissions for something.
|
||||
NOPERMS_MSG = "You do not have the necessary permissions to do that."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue