def __init__(self, *args, **kwargs): """ Create a list of the Plugins registered in the entry points """ super(PluginController, self).__init__(*args, **kwargs) self.config = load_config(PLUGINS_CONFIG_FILEPATH) self.plugins = self.config.sections() self.active_plugins = {} for entry_point in pkg_resources.iter_entry_points('bugyou.plugins'): plugin_object = entry_point.load() plugin_name = entry_point.name self.active_plugins[plugin_name] = plugin_object log.info("All Active Plugins Loaded")
def __init__(self, *args, **kwargs): self.config = load_config(PLUGINS_CONFIG_FILEPATH) self.active_services = get_active_services() self.services = []
def __init__(self, *args, **kwargs): self.config = load_config(SERVICES_CONFIG_FILEPATH)