diff --git a/cfg/config.py b/cfg/config.py index 9ceee4a..91ec502 100644 --- a/cfg/config.py +++ b/cfg/config.py @@ -14,13 +14,13 @@ def getConfigAsJson(): except FileNotFoundError as exc: logFileNotFoundErrorAndReraise() -def getGlobalConfigSettingsNames(json_config): - return [setting_name for setting_name in json_config.keys()] +def representConfigValuesAsDict(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 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 } + return { k:v for k in getGlobalConfigSettingsNames(json_config) for v in getGlobalConfigValues(json_config) }