(self)
return enabled_plugins
Reads the config and returns all the enabled plugins
Reads the config and returns all the enabled plugins
Reads the config and returns all the enabled plugins
def _load_enabled(self) -> List[str]:
        """
        Reads the config and returns all the enabled plugins
        """
        enabled_plugins: List[str] = []
        try:
            config_plugins = self.config["plugins"]["enabled"]
            split_plugins = config_plugins.split("\n")
            if "all" in split_plugins:
                enabled_plugins = ["all"]
            else:
                for plugin in split_plugins:
                    if not plugin:
                        continue
                    enabled_plugins.append(plugin)
        except KeyError:
            pass
        return enabled_plugins
def _load_enabled ( self ) -> List [ str ] : enabled_plugins : List [ str ] = [ ] try : config_plugins = self . config [ "plugins" ] [ "enabled" ] split_plugins = config_plugins . split ( "\n" ) if "all" in split_plugins : enabled_plugins = [ "all" ] else : for plugin in split_plugins : if not plugin : continue enabled_plugins . append ( plugin ) except KeyError : pass return enabled_plugins