Add the description for the selected property
[bertos.git] / wizard / bertos_utils.py
index 1376942ace266bca2a332e7672f06fa386306a42..bed5493b499ac60984ed3d73205e36e14fe1c685 100644 (file)
@@ -170,6 +170,15 @@ def loadModuleInfos(path):
             return moduleInfos
     return {}
 
+def loadModuleInfosDict(path):
+    """
+    Return the dict containig all the modules
+    """
+    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 +192,13 @@ 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):
+    """
+    Return the dict containing all the define lists
+    """
+    defineListsDict = {}
+    for filename, path in findDefinitions("*.h", path):
+        defineListsDict.update(loadDefineLists(path + "/" + filename))
+    return defineListsDict
\ No newline at end of file