From 4b618efcfab54800f2dc276d46e251f108819a6f Mon Sep 17 00:00:00 2001 From: duplo Date: Thu, 26 Mar 2009 10:45:28 +0000 Subject: [PATCH] Add self-dependencies for modules that have a name different from their filename git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2438 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 1c8caaa7..8e175dbe 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -398,6 +398,9 @@ def loadModuleData(project): except ParseError, err: raise DefineException.ModuleDefineException(path, err.line_number, err.line) for module, information in module_dict.items(): + if "depends" not in information: + information["depends"] = () + information["depends"] += (filename.split(".")[0],) information["category"] = os.path.basename(path) if "configuration" in information.keys() and len(information["configuration"]): configuration = module_dict[module]["configuration"] -- 2.25.1