def bpm_from_config(config):
 extra = getattr(config, 'BOT_EXTRA_BACKEND_DIR', [])
 return SpecificPluginManager(config, 'backends', ErrBot, CORE_BACKENDS, extra_search_dirs=extra)

def bpm_from_config ( config ) : extra = getattr ( config , 'BOT_EXTRA_BACKEND_DIR' , [ ] ) return SpecificPluginManager ( config , 'backends' , ErrBot , CORE_BACKENDS , extra_search_dirs = extra )
creates a backend plugin manager from a given config .