configuration
Module that manages the application configuration.
parse_configuration(general_config_path, component_config_path='')
Function that parses a list of configurations in a single ConfigParser object. It expects the first element of the list to be the path to general configuration path. It will override values of the general configuration file with component configuration data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
general_config_path
|
list
|
Path to the general configuration file. |
required |
component_config_path
|
str
|
Path to the component configuration file. |
''
|
Raises:
Type | Description |
---|---|
FileNotFoundError
|
If the general configuration path is doesn't exist |
Returns:
Name | Type | Description |
---|---|---|
config |
ConfigParser
|
ConfigParser object with the configuration data. |
Source code in multimno/core/configuration.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|