self.setTitle(self.tr("Select the CPU"))
def _populateCpuList(self):
- cpus = bertos_utils.findDefinitions("cdef", self._projectInfoRetrieve("SOURCES_PATH"))
- for cpu in cpus.keys():
- self.pageContent.cpuList.addItem(QListWidgetItem(cpu))
+ infos = bertos_utils.loadCpuInfos(self._projectInfoRetrieve("SOURCES_PATH"))
+ for cpu in infos:
+ self.pageContent.cpuList.addItem(QListWidgetItem(cpu["CORE_CPU"]))
def reloadData(self):
self._populateCpuList()
D = {}
def include(filename, dict = D, directory=definition[1]):
execfile(directory + "/" + filename, {}, D)
- d["include"] = include
+ D["include"] = include
include(definition[0], D)
cpuInfos.append(D)
return cpuInfos