projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add functions for get the all the bertos modules and define lists
[bertos.git]
/
wizard
/
bertos_utils.py
diff --git
a/wizard/bertos_utils.py
b/wizard/bertos_utils.py
index 1376942ace266bca2a332e7672f06fa386306a42..479f88eea08cd3727f86cb3afcb29038cdb491ec 100644
(file)
--- a/
wizard/bertos_utils.py
+++ b/
wizard/bertos_utils.py
@@
-170,6
+170,12
@@
def loadModuleInfos(path):
return moduleInfos
return {}
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
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)
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