From 0e1bf65f08f93edaf8f0d59c6e030c5f4c96e361 Mon Sep 17 00:00:00 2001 From: Goffi Date: Wed, 9 Mar 2016 12:11:35 +0100 Subject: [PATCH] core (tools/config): fixed fixConfigOption: C.DEFAULT_CONFIG was used so the default values were written if not set in the config file used, resulting in a overriding of values set in config files of higher level (e.g. ~/.config/sat/sat.conf could override /etc/sat.conf values). --- src/tools/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/config.py b/src/tools/config.py index 18eba1e4..5cd498a4 100644 --- a/src/tools/config.py +++ b/src/tools/config.py @@ -43,7 +43,7 @@ def fixConfigOption(section, option, value, silent=True): @param value (str): the new value @param silent (boolean): toggle logging output (must be True when called from sat.sh) """ - config = SafeConfigParser(defaults=C.DEFAULT_CONFIG) + config = SafeConfigParser() target_file = None for file_ in C.CONFIG_FILES[::-1]: # we will eventually update the existing file with the highest priority, if it's a user personal file...