From: duplo Date: Mon, 22 Dec 2008 09:17:05 +0000 (+0000) Subject: Add the const string containing the pattern of the cpu definition filenames X-Git-Tag: 2.1.0~567 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=958626ece926cf0b9b30993aef5dea88fb70dc32;p=bertos.git 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 --- 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