X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fbertos_utils.py;h=50758645a78459a7336cecd5622ecf04baf24c0e;hb=70736533af22afef6727cedb0f75504f98688cad;hp=c38a88b444b6fa9e80dd2dda5473a9a92b16644e;hpb=ce2245bb7a6e1f3ac6f0caf0ce640feb235d8e27;p=bertos.git diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index c38a88b4..50758645 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -119,12 +119,13 @@ def getDescriptionInformations(text): Take the doxygen comment and strip the wizard informations, returning the tuple (comment, wizard_informations) """ - informations = {} index = text.find("$WIZARD") if index != -1: exec(text[index + 1:]) - informations.update(WIZARD) - return text[:index].strip(), informations + informations = WIZARD + return text[:index].strip(), informations + else: + return text.strip(), {} def loadModuleInfos(path): """