def getDefaultConfig(arg): if _conf.has_option('DEFAULT', arg): return _conf.get('DEFAULT', arg) else: print('No python configuration for ' + arg + ' found.\n Exiting demo!') sys.exit()
def __getDefaultConfig(self, arg, value): ''' If Value is None, this will try to find the value in one of the configuration files ''' if value == None and _conf.has_option('DEFAULT', arg): return _conf.get('DEFAULT', arg) else: return value
def __getDefaultConfig(self, arg, value): if value == None and _conf.has_option('DEFAULT', arg): return _conf.get('DEFAULT', arg) else: return value
def getDefaultConfig(arg): if _conf.has_option('DEFAULT', arg): return _conf.get('DEFAULT', arg) else: print('No python configuration for ' + arg + ' found.\n Exiting demo!') sys.exit();