Add the const string containing the pattern of the cpu definition filenames
[bertos.git] / wizard / bertos_utils.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):