Remove unneeded config.
[bertos.git] / wizard / bertos_utils.py
index 3854f9f269682ff7c6c02ca0f5f8838b2c9228ff..6065c677cf6241bc4e7869bbad4fbfe9697f4a8e 100644 (file)
@@ -247,6 +247,11 @@ def loadModuleInfos(path):
                                                         "configuration": WIZARD_MODULE["configuration"],
                                                         "description": "",
                                                         "enabled": False}
+                index = comment.find("\\brief")
+                if index != -1:
+                    description = comment[index + 7:]
+                    description = description[:description.find(" * ")]
+                    moduleInfos[WIZARD_MODULE["name"]]["description"] = description
                 return moduleInfos
         return {}
     except SyntaxError: