def load_config_module(name, options, tags):
 if isinstance(name, str):
  LOG.info('Loading %s', name)
  d = {}
  module = __import__(name[:(-3)], d, d)
 else:
  module = reload(name)
 onload = module.__dict__.get('onload')
 if callable(onload):
  try:
   onload(options, tags)
  except:
   LOG.fatal('Exception while loading %s', name)
   raise
 return module

def load_config_module ( name , options , tags ) : if isinstance ( name , str ) : LOG . info ( 'Loading %s' , name ) d = { } module = __import__ ( name [ : ( - 3 ) ] , d , d ) else : module = reload ( name ) onload = module . __dict__ . get ( 'onload' ) if callable ( onload ) : try : onload ( options , tags ) except : LOG . fatal ( 'Exception while loading %s' , name ) raise return module
imports the config module of the given name the name argument can be a string .