import os
import fnmatch
+import const
+
def isBertosDir(directory):
return os.path.exists(directory + "/VERSION")
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):
cpuInfos = []
- for definition in findDefinitions("cdef", path):
+ for definition in findDefinitions(const.CPU_DEFINITION, path):
D = {}
+ D.update(const.CPU_DEF)
def include(filename, dict = D, directory=definition[1]):
execfile(directory + "/" + filename, {}, D)
D["include"] = include