def _parse_config_file(filename):
 parser = ConfigParser()
 parser.read(filename)
 name = parser.sections()[0]
 meta_data = {}
 for opt in parser.options(name):
  meta_data[opt] = parser.get(name, opt)
 return (name, meta_data)

def _parse_config_file ( filename ) : parser = ConfigParser ( ) parser . read ( filename ) name = parser . sections ( ) [ 0 ] meta_data = { } for opt in parser . options ( name ) : meta_data [ opt ] = parser . get ( name , opt ) return ( name , meta_data )
return plugin name and meta-data dict from plugin config file .