Add the const string containing the pattern of the cpu definition filenames
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 22 Dec 2008 09:17:05 +0000 (09:17 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 22 Dec 2008 09:17:05 +0000 (09:17 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2115 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py
wizard/const.py

index 0a1076911acf06ed8f470093c3c8c977b10f59f5..99bdca23f7b248463f1dcd42452795736b4f1871 100644 (file)
@@ -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):
index 4152cb700944180bf000d32a3a3efbfe4dc283a0..7b30cb8ee47049f05adbee3b96cff14d3f52ae02 100644 (file)
@@ -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