targets/__init__.py
changeset 1736 7e61baa047f0
parent 1734 750eeb7230a1
child 1739 ec153828ded2
--- a/targets/__init__.py	Mon Aug 14 22:30:41 2017 +0300
+++ b/targets/__init__.py	Mon Aug 14 23:27:15 2017 +0300
@@ -38,6 +38,8 @@
 import util.paths as paths
 
 _base_path = paths.AbsDir(__file__)
+
+
 def _GetLocalTargetClassFactory(name):
     return lambda:getattr(__import__(name,globals(),locals()), name+"_target")
 
@@ -54,9 +56,11 @@
 toolchains = {"gcc":  path.join(_base_path, "XSD_toolchain_gcc"),
               "makefile":  path.join(_base_path, "XSD_toolchain_makefile")}
 
+
 def GetBuilder(targetname):
     return targets[targetname]["class"]()
 
+
 def GetTargetChoices():
     DictXSD_toolchain = {}
     targetchoices = ""
@@ -74,15 +78,18 @@
 
     return targetchoices
 
+
 def GetTargetCode(targetname):
     codedesc = targets[targetname]["code"]
     code = "\n".join([open(fpath).read() for fname, fpath in sorted(codedesc.items())])
     return code
 
+
 def GetHeader():
     filename = paths.AbsNeighbourFile(__file__,"beremiz.h")
     return open(filename).read()
 
+
 def GetCode(name):
     filename = paths.AbsNeighbourFile(__file__,name)
     return open(filename).read()