diff --git a/cfg/config.py b/cfg/config.py index 4ae3a87..9ceee4a 100644 --- a/cfg/config.py +++ b/cfg/config.py @@ -3,6 +3,7 @@ from models.logger import createLogFilesDirIfNotExists, logFileNotFoundErrorAndReraise + def getConfigAsJson(): try: createLogFilesDirIfNotExists() @@ -13,5 +14,13 @@ def getConfigAsJson(): except FileNotFoundError as exc: logFileNotFoundErrorAndReraise() -def getGlobalValuesFromJsonConfig(json_config): +def getGlobalConfigSettingsNames(json_config): + return [setting_name for setting_name in json_config.keys()] + +def getGlobalConfigValues(json_config): return [config_value for config_value in json_config.values()] + +def representConfigValuesAsDict(config_settings_names, config_values): + return { k:v for k in config_settings_names for v in global_config_values } + +