From 958626ece926cf0b9b30993aef5dea88fb70dc32 Mon Sep 17 00:00:00 2001 From: duplo Date: Mon, 22 Dec 2008 09:17:05 +0000 Subject: [PATCH] Add the const string containing the pattern of the cpu definition filenames git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2115 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos_utils.py | 2 +- wizard/const.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 0a107691..99bdca23 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -29,7 +29,7 @@ def findDefinitions(ftype, path): L = os.walk(path) for element in L: for filename in element[2]: - if fnmatch.fnmatch(filename, "*." + ftype): + if fnmatch.fnmatch(filename, ftype): yield (filename, element[0]) def loadCpuInfos(path): diff --git a/wizard/const.py b/wizard/const.py index 4152cb70..7b30cb8e 100644 --- a/wizard/const.py +++ b/wizard/const.py @@ -24,4 +24,4 @@ CPU_DEF = { "CPU_DESC" : [] } -CPU_DEFINITION = "cdef" \ No newline at end of file +CPU_DEFINITION = "*.cdef" \ No newline at end of file -- 2.25.1