Use the constants instead of hardcoded values
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 19 Dec 2008 11:17:10 +0000 (11:17 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 19 Dec 2008 11:17:10 +0000 (11:17 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2102 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index 0f0dc709bcd5e4041509fedd0a7d8a258479769b..0a1076911acf06ed8f470093c3c8c977b10f59f5 100644 (file)
@@ -12,6 +12,8 @@
 import os
 import fnmatch
 
+import const
+
 def isBertosDir(directory):
    return os.path.exists(directory + "/VERSION")
 
@@ -32,8 +34,9 @@ def findDefinitions(ftype, path):
 
 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