def read_version():
 variables = {}
 with open(VERSION_FILE) as f:
  exec compile(f.read(), 'version.py', 'exec') in variables
 return variables['VERSION']

def read_version ( ) : variables = { } with open ( VERSION_FILE ) as f : exec compile ( f . read ( ) , 'version.py' , 'exec' ) in variables return variables [ 'VERSION' ]
read directly the errbot/version .