Add category for each moduel
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 20 Feb 2009 14:27:52 +0000 (14:27 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 20 Feb 2009 14:27:52 +0000 (14:27 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2367 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index cfaf2a7fd631f4f0a18f3c0f4f5d662c4845fac9..b74245bfec2c18b54971af526d40dee011177dc8 100644 (file)
@@ -287,6 +287,7 @@ def loadModuleData(project):
             except ParseError, err:
                 raise DefineException.ModuleDefineException(path, err.line_number, err.line)
             for module, information in moduleDict.items():
+                information["category"] = os.path.basename(path)
                 if "configuration" in information.keys() and len(information["configuration"]):
                     configuration = moduleDict[module]["configuration"]
                     try: