From 89d8669f1af6548342b6137479da16fdc71917ba Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 19 Dec 2008 10:10:22 +0000 Subject: [PATCH] Parse the filename for find the cpu name git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2099 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BCpuPage.py | 2 +- wizard/bertos_utils.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.25.1