targets/__init__.py
changeset 642 cd7ccbbbf471
parent 425 f390e9fdd2cf
child 733 915be999f3f0
--- a/targets/__init__.py	Fri Nov 18 23:54:03 2011 +0100
+++ b/targets/__init__.py	Sat Nov 19 21:52:34 2011 +0100
@@ -34,8 +34,14 @@
 
 _base_path = path.split(__file__)[0]
 
-targets = [name for name in listdir(_base_path) if path.isdir(path.join(_base_path, name)) and name.upper() != "CVS" and not name.startswith("__")]
-toolchains = [name for name in listdir(_base_path) if not path.isdir(path.join(_base_path, name)) and name.upper() != "CVS" and name.endswith(".py") and not name.startswith("__") and not name.endswith(".pyc")]
+targets = [name for name in listdir(_base_path) 
+                   if path.isdir(path.join(_base_path, name)) 
+                       and not name.startswith("__")]
+toolchains = [name for name in listdir(_base_path) 
+                       if not path.isdir(path.join(_base_path, name)) 
+                            and name.endswith(".py") 
+                            and not name.startswith("__") 
+                            and not name.endswith(".pyc")]
 
 DictXSD_toolchain = {}
 DictXSD_target = {}
@@ -74,5 +80,3 @@
     filename = path.join(path.split(__file__)[0],name + ".c")
     return open(filename).read()
 
-from toolchain_gcc import toolchain_gcc
-from toolchain_makefile import toolchain_makefile
\ No newline at end of file