targets/__init__.py
changeset 1457 ff7cfce737ca
parent 1456 e723c1dd6faa
child 1571 486f94a8032c
--- a/targets/__init__.py	Fri Mar 13 17:19:58 2015 +0100
+++ b/targets/__init__.py	Fri Mar 13 22:36:52 2015 +0100
@@ -39,8 +39,9 @@
 targets = dict([(name, {"xsd":path.join(_base_path, name, "XSD"), 
                         "class":_GetLocalTargetClassFactory(name),
                         "code": { fname: path.join(_base_path, name, fname) 
-                                    for fname in listdir(path.join(_base_path, name))
-                                      if fname.startswith("plc_%s_main.c"%name)}})
+                           for fname in listdir(path.join(_base_path, name))
+                             if fname.startswith("plc_%s_main"%name) and
+                               fname.endswith(".c")}})
                 for name in listdir(_base_path) 
                     if path.isdir(path.join(_base_path, name)) 
                        and not name.startswith("__")])