def load_settings_from_plugin(self, path="./"): """ Read the plugin's configuration file into a dictionary where each section of the config is a sub-dictionary that contains some properties. """ plugin_name = "" # Remove last slash to parse data if path[-1] == "/": path = path[:-1] plugin_name = path.split("/")[-1] path = path + "/settings.conf" return ConfParser.parse_config(plugin_name, path)