mss_dataserver.core.util.load_configuration¶
-
mss_dataserver.core.util.
load_configuration
(filename)[source]¶ Load the configuration from a file.
Load the configuration from a .ini file using configparser. The properties of the configuration file are documented in an example .ini file in the example directory.
- Parameters
filename (str) – The full path to the configuration file.
- Returns
config – A dictionary holding the configuration data.
- Return type
Notes
Example configuration file: https://github.com/Macroseismic-Sensor-Network/mss_dataserver/blob/main/example/mss_dataserver_config.ini