def load_config(config_file):
 if ((not config_file) or (not os.path.isfile(config_file))):
  raise ApplicationException(desc=('Invalid configuration file: %s' % config_file))
 try:
  return load_source('bgpspeaker.application.settings', config_file)
 except Exception as e:
  raise ApplicationException(desc=str(e))

def load_config ( config_file ) : if ( ( not config_file ) or ( not os . path . isfile ( config_file ) ) ) : raise ApplicationException ( desc = ( 'Invalid configuration file: %s' % config_file ) ) try : return load_source ( 'bgpspeaker.application.settings' , config_file ) except Exception as e : raise ApplicationException ( desc = str ( e ) )
load a configuration file and create importer and exporter classes .