PluginManager.collectPlugins should return value from loadPlugins
A fat-free DIY Python plugin management toolkit.
Brought to you by:
tibonihoo
Issue: if a PluginManager is used to collectPlugins and there are plugins it cannot load the errors are stored in plugin_info.error. The plugin_info object is appened to all processed plugins. This list is returned by loadPlugins. However, collectPlugins which wraps the call to loadPlugins does not return the processed_plugins list.
>>> m = PluginManagerSingleton.get() >>> m.setPluginPlaces(['/foo/bar', '/baz']) >>> processed_plugins = m.collectPlugins() >>> # if a console logger in use you get a lot of errors here >>> type(processed_plugins) <type 'NoneType'>
Anonymous