From f46fbf47b83b9c2a02d2bccf157fe21bd7b759d9 Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 23 Jan 2009 14:55:07 +0000 Subject: [PATCH] Add some fields in the module dict git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2216 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos_utils.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 {} -- 2.25.1