From: duplo Date: Fri, 19 Dec 2008 10:10:22 +0000 (+0000) Subject: Parse the filename for find the cpu name X-Git-Tag: 2.1.0~583 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=89d8669f1af6548342b6137479da16fdc71917ba;p=bertos.git Parse the filename for find the cpu name git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2099 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BCpuPage.py b/wizard/BCpuPage.py index 3a526f9c..501a5a20 100644 --- a/wizard/BCpuPage.py +++ b/wizard/BCpuPage.py @@ -22,7 +22,7 @@ class BCpuPage(BWizardPage): def _populateCpuList(self): infos = bertos_utils.loadCpuInfos(self._projectInfoRetrieve("SOURCES_PATH")) for cpu in infos: - self.pageContent.cpuList.addItem(QListWidgetItem(cpu["CORE_CPU"])) + self.pageContent.cpuList.addItem(QListWidgetItem(cpu["CPU_NAME"])) def reloadData(self): self._populateCpuList() diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index b927ec48..0f0dc709 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -38,5 +38,6 @@ def loadCpuInfos(path): execfile(directory + "/" + filename, {}, D) D["include"] = include include(definition[0], D) + D["CPU_NAME"] = definition[0].split(".")[0] cpuInfos.append(D) return cpuInfos