def get_version_number():
 config_parser = ConfigParser.RawConfigParser()
 config_file = os.path.join(os.path.dirname(__file__), os.pardir, 'res', 'roboto.cfg')
 config_parser.read(config_file)
 version_number = config_parser.get('main', 'version')
 assert re.match('[0-9]+\\.[0-9]{3}', version_number)
 return version_number

def get_version_number ( ) : config_parser = ConfigParser . RawConfigParser ( ) config_file = os . path . join ( os . path . dirname ( __file__ ) , os . pardir , 'res' , 'roboto.cfg' ) config_parser . read ( config_file ) version_number = config_parser . get ( 'main' , 'version' ) assert re . match ( '[0-9]+\\.[0-9]{3}' , version_number ) return version_number
returns the version number as a string .