def evennia_version():
 version = 'Unknown'
 try:
  import evennia
  version = evennia.__version__
 except ImportError:
  pass
 try:
  rev = check_output('git rev-parse --short HEAD', shell=True, cwd=EVENNIA_ROOT, stderr=STDOUT).strip()
  version = ('%s (rev %s)' % (version, rev))
 except (IOError, CalledProcessError):
  pass
 return version

def evennia_version ( ) : version = 'Unknown' try : import evennia version = evennia . __version__ except ImportError : pass try : rev = check_output ( 'git rev-parse --short HEAD' , shell = True , cwd = EVENNIA_ROOT , stderr = STDOUT ) . strip ( ) version = ( '%s (rev %s)' % ( version , rev ) ) except ( IOError , CalledProcessError ) : pass return version
get the evennia version info from the main package .