targets/__init__.py
changeset 1767 c74815729afd
parent 1758 845ca626db09
child 1782 5b6ad7a7fd9d
--- a/targets/__init__.py	Thu Aug 17 17:25:17 2017 +0300
+++ b/targets/__init__.py	Fri Aug 18 12:36:31 2017 +0300
@@ -44,15 +44,15 @@
     return lambda: getattr(__import__(name, globals(), locals()), name+"_target")
 
 
-targets = dict([(name, {"xsd": path.join(_base_path, name, "XSD"),
+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" % name) and
-                               fname.endswith(".c")}})
+                        "code":  {fname: path.join(_base_path, name, fname)
+                                  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("__")])
+                if (path.isdir(path.join(_base_path, name))
+                    and not name.startswith("__"))])
 
 toolchains = {"gcc":  path.join(_base_path, "XSD_toolchain_gcc"),
               "makefile":  path.join(_base_path, "XSD_toolchain_makefile")}