Make smarter the selection of the header to parse
[bertos.git] / wizard / test / testModulePage.py
index 026e9ae9d9bafe4e91bf0d66f98ef9af7d75be87..6c4f8dc7d91c2cccd56f1d5e952b34cd80c831a5 100644 (file)
@@ -19,6 +19,7 @@ sys.path.append("../")
 
 import BProject
 import BModulePage
+import bertos_utils
 
 # Add a custom UI_LOCATION constant
 BModulePage.UI_LOCATION = "../ui"
@@ -28,6 +29,8 @@ def main():
     app.project = BProject.BProject()
     page = BModulePage.BModulePage()
     page._projectInfoStore("SOURCES_PATH", "../../")
+    page._projectInfoStore("CPU_INFOS", {"TOOLCHAIN": "avr"})
+    bertos_utils.loadSourceTree(page._project())
     page.reloadData()
     page.show()
     app.exec_()