X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=wizard%2Fbertos_utils.py;h=479f88eea08cd3727f86cb3afcb29038cdb491ec;hb=90500b8c052f1ae5ac3870c509cd1f37786f7e3d;hp=1376942ace266bca2a332e7672f06fa386306a42;hpb=c060a764f49cecbc4724a37e32c899e23853a91e;p=bertos.git diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 1376942a..479f88ee 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -170,6 +170,12 @@ def loadModuleInfos(path): return moduleInfos return {} +def loadModuleInfosDict(path): + moduleInfosDict = {} + for filename, path in findDefinitions("*.h", path): + moduleInfosDict.update(loadModuleInfos(path + "/" + filename)) + return moduleInfosDict + def loadDefineLists(path): """ Return a dict with the name of the list as key and a list of string as value @@ -183,4 +189,10 @@ def loadDefineLists(path): if index != -1: exec(comment[index + 1:]) listDict.update(WIZARD_LIST) - return listDict \ No newline at end of file + return listDict + +def loadDefineListsDict(path): + defineListsDict = {} + for filename, path in findDefinitions("*.h", path): + defineListsDict.update(loadDefineLists(path + "/" + filename)) + return defineListsDict \ No newline at end of file