X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fbertos_utils.py;h=6065c677cf6241bc4e7869bbad4fbfe9697f4a8e;hb=44788dc1e8a6714609acbec5314fa1a5e6c9a91b;hp=3854f9f269682ff7c6c02ca0f5f8838b2c9228ff;hpb=ad42262ffafdf46844bfbea6573691d2200600c2;p=bertos.git diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 3854f9f2..6065c677 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -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: