From 8485e3cfe2e7421e1313752f0b802e5ddd55e86b Mon Sep 17 00:00:00 2001 From: duplo Date: Tue, 8 Sep 2009 09:47:21 +0000 Subject: [PATCH] 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 --- wizard/bertos_utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 = [] -- 2.25.1