Resolve the bug of the autoenabled modules
[bertos.git] / wizard / bertos_utils.py
index b7898630dae2be6cee032dd6c5e12d4d9520d070..d8c5f515ad1069407ddb6fd352d61c5173a00037 100644 (file)
@@ -70,7 +70,7 @@ def createBertosProject(project_info):
             configurations = project_info.info("CONFIGURATIONS")
             configuration = configurations[information["configuration"]]
             for start, parameter in configuration["paramlist"]:
-                if "type" in configuration[parameter] and configuration[parameter]["type"] == "autoenabled":
+                if "type" in configuration[parameter]["informations"] and configuration[parameter]["informations"]["type"] == "autoenabled":
                     configuration[parameter]["value"] = "1"
             project_info.setInfo("CONFIGURATIONS", configurations)
     # Copy all the configuration files
@@ -99,7 +99,7 @@ def createBertosProject(project_info):
     for plugin in project_info.info("OUTPUT"):
         module = loadPlugin(plugin)
         relevants_files[plugin] = module.createProject(project_info)
-    project_info.setInfo("RELEVANTS_FILES", relevants_files)
+    project_info.setInfo("RELEVANT_FILES", relevants_files)
 
 def loadPlugin(plugin):
     """