Replace .config rather than reconstructing plugins, drivers, and UIs.
[hooke.git] / hooke / plugin / __init__.py
index 95c56e2380ff2d3f7ea3b68fa4442f155fda4291..d04f3740f3797fae36e731a0d01de3a43d56622f 100644 (file)
@@ -171,7 +171,6 @@ def default_settings():
 def load_graph(graph, config, include_section):
     enabled = {}
     items = []
 def load_graph(graph, config, include_section):
     enabled = {}
     items = []
-    conditions = config.items('conditions')
     for node in graph:
         item = node.data
         try:
     for node in graph:
         item = node.data
         try:
@@ -188,12 +187,5 @@ def load_graph(graph, config, include_section):
                      % (item.name, dependency.data.name))
                     enabled[item.name] = False
                     continue
                      % (item.name, dependency.data.name))
                     enabled[item.name] = False
                     continue
-            try:
-                item.config = dict(config.items(item.setting_section))
-            except configparser.NoSectionError:
-                item.config = {}
-            for key,value in conditions:
-                if key not in item.config:
-                    item.config[key] = value
             items.append(item)
     return items
             items.append(item)
     return items