Drop plugin support

This commit is contained in:
Cédric Leporcq 2021-08-08 12:40:48 +02:00
parent 62bd72c77e
commit 308c1eef5c
1 changed files with 0 additions and 20 deletions

View File

@ -15,26 +15,6 @@ def load_config(file):
load_config.config.read(file)
return load_config.config
def load_plugin_config(file):
config = load_config(file)
# If plugins are defined in the config we return them as a list
# Else we return an empty list
if 'Plugins' in config and 'plugins' in config['Plugins']:
return config['Plugins']['plugins'].split(',')
return []
def load_config_for_plugin(name, file):
# Plugins store data using Plugin%PluginName% format.
key = 'Plugin{}'.format(name)
config = load_config(file)
if key in config:
return config[key]
return {}
def get_path_definition(config):
"""Returns a list of folder definitions.