Resolve the bug of the autoenabled modules
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 23 Apr 2009 08:13:29 +0000 (08:13 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 23 Apr 2009 08:13:29 +0000 (08:13 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2643 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index 17c3a18f50bf2aa50f85cbb3d0aa3adfb1a17225..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