From: duplo Date: Tue, 8 Sep 2009 09:47:21 +0000 (+0000) Subject: Add also files, when selecting the modules in the project loading process X-Git-Tag: 2.2.0~68 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=8485e3cfe2e7421e1313752f0b802e5ddd55e86b;p=bertos.git Add also files, when selecting the modules in the project loading process git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2900 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 2520b109..f509a4c2 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -87,9 +87,17 @@ def loadBertosProject(project_file): def setEnabledModules(project_info, enabled_modules): modules = project_info.info("MODULES") + files = {} for module, information in modules.items(): information["enabled"] = module in enabled_modules + for dependency in information["depends"]: + if not dependency in modules: + if dependency in files: + files[dependency] += 1 + else: + files[dependency] = 1 project_info.setInfo("MODULES", modules) + project_info.setInfo("FILES", files) def enabledModules(project_info): enabled_modules = []