def extract_live_config(config, plugins):
 live_config = config._sections['live_config'].copy()
 del live_config['__name__']
 parsed = ConfigValueParser(live_config)
 parsed.add_spec(Globals.live_config_spec)
 for plugin in plugins:
  parsed.add_spec(plugin.live_config)
 return parsed

def extract_live_config ( config , plugins ) : live_config = config . _sections [ 'live_config' ] . copy ( ) del live_config [ '__name__' ] parsed = ConfigValueParser ( live_config ) parsed . add_spec ( Globals . live_config_spec ) for plugin in plugins : parsed . add_spec ( plugin . live_config ) return parsed
gets live config out of ini file and validates it according to spec .