From: duplo Date: Fri, 23 Jan 2009 14:55:07 +0000 (+0000) Subject: Add some fields in the module dict X-Git-Tag: 2.1.0~466 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=f46fbf47b83b9c2a02d2bccf157fe21bd7b759d9;p=bertos.git Add some fields in the module dict git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2216 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index bed5493b..52eca1d7 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -157,6 +157,9 @@ def loadModuleInfos(path): if the given file is not a BeRTOS module: "depends": a list of modules needed by this module "configuration": the cfg_*.h with the module configurations + "description": a string containing the brief description of doxygen + "enabled": contains False but the wizard will change if the user select + the module """ moduleInfos = {} string = open(path, "r").read() @@ -166,7 +169,10 @@ def loadModuleInfos(path): index = comment.find("$WIZARD_MODULE") if index != -1: exec(comment[index + 1:]) - moduleInfos[WIZARD_MODULE["name"]] = {"depends": WIZARD_MODULE["depends"], "configuration": WIZARD_MODULE["configuration"]} + moduleInfos[WIZARD_MODULE["name"]] = {"depends": WIZARD_MODULE["depends"], + "configuration": WIZARD_MODULE["configuration"], + "description": "", + "enabled": False} return moduleInfos return {}