Drop plugin support
This commit is contained in:
		
							parent
							
								
									62bd72c77e
								
							
						
					
					
						commit
						308c1eef5c
					
				@ -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.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user