Change the comment style for the modules and the list, and use the newParser to parse...
[bertos.git] / wizard / BCpuPage.py
index 8323b1281946ef07ce7e8859e192dcbb31df5bcc..41434967ea07cac17b2ea9b2765f8268cc69de7f 100644 (file)
@@ -19,7 +19,7 @@ from const import *
 class BCpuPage(BWizardPage):
     
     def __init__(self):
-        BWizardPage.__init__(self, "cpu_select.ui")
+        BWizardPage.__init__(self, UI_LOCATION + "/cpu_select.ui")
         self.setTitle(self.tr("Select the CPU"))
         self._connectSignals()
         self._setupUi()
@@ -27,7 +27,7 @@ class BCpuPage(BWizardPage):
     def _populateCpuList(self):
         self.pageContent.cpuList.clear()
         self.pageContent.cpuList.setCurrentItem(None)
-        infos = bertos_utils.loadCpuInfos(self._projectInfoRetrieve("SOURCES_PATH"))
+        infos = bertos_utils.loadCpuInfos(self._project())
         for cpu in infos:
             item = QListWidgetItem(cpu["CPU_NAME"])
             item.setData(Qt.UserRole, qvariant_converter.convertDict(cpu))
@@ -47,6 +47,7 @@ class BCpuPage(BWizardPage):
         self.pageContent.descriptionLabel.setText("")
     
     def reloadData(self):
+        bertos_utils.loadSourceTree(self._project())
         self._populateCpuList()
         cpuName = self._projectInfoRetrieve("CPU_NAME")
         self._setupUi()