summaryrefslogtreecommitdiffstats
path: root/scripts/devtool
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/devtool')
-rwxr-xr-xscripts/devtool5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/devtool b/scripts/devtool
index 4780390654..9ac6e798d2 100755
--- a/scripts/devtool
+++ b/scripts/devtool
@@ -86,6 +86,11 @@ class ConfigHandler(object):
86 with open(self.config_file, 'w') as f: 86 with open(self.config_file, 'w') as f:
87 self.config_obj.write(f) 87 self.config_obj.write(f)
88 88
89 def set(self, section, option, value):
90 if not self.config_obj.has_section(section):
91 self.config_obj.add_section(section)
92 self.config_obj.set(section, option, value)
93
89class Context: 94class Context:
90 def __init__(self, **kwargs): 95 def __init__(self, **kwargs):
91 self.__dict__.update(kwargs) 96 self.__dict__.update(kwargs)