From: duplo Date: Thu, 26 Mar 2009 10:45:28 +0000 (+0000) Subject: Add self-dependencies for modules that have a name different from their filename X-Git-Tag: 2.1.0~244 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=4b618efcfab54800f2dc276d46e251f108819a6f;p=bertos.git 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 --- 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"]