X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fbertos_utils.py;h=f509a4c2430055680334b2856fc9994389ee6fe8;hb=73f44b2bb0d5fe6d39ffc894bf13ff063b19237c;hp=2520b109cff531be35b6e70308f9a6dc338f65f1;hpb=c40c362302e11c41961d2af6e5545a1618e1f1ca;p=bertos.git 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 = []