| Conditions | 3 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """Load config file as a singleton.""" |
||
| 21 | def load_plugin_config(): |
||
| 22 | config = load_config() |
||
| 23 | |||
| 24 | # If plugins are defined in the config we return them as a list |
||
| 25 | # Else we return an empty list |
||
| 26 | if 'Plugins' in config and 'plugins' in config['Plugins']: |
||
| 27 | return config['Plugins']['plugins'].split(',') |
||
| 28 | |||
| 29 | return [] |
||
| 30 | |||
| 40 |