Skip to content

Commit

Permalink
config: Don't merge default options if a user option is defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanruthe committed May 21, 2021
1 parent 360e8b4 commit eb80148
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ks_includes/config.py
Expand Up @@ -88,6 +88,14 @@ def __init__(self, configfile, lang=None, screen=None):
for include in includes:
self._include_config("/".join(self.config_path.split("/")[:-1]),include)

for i in ['menu __main','menu __print','menu __splashscreen','preheat']:
for j in self.defined_config.sections():
if j.startswith(i):
for k in list(self.config.sections()):
if k.startswith(i):
del self.config[k]
break

self.log_config(self.defined_config)
self.config.read_string(user_def)
if saved_def != None:
Expand Down

0 comments on commit eb80148

Please sign in to comment.