targets/__init__.py
branch1.1 Korean release
changeset 1280 72a826dfcfbb
parent 1001 3f966bbb3fba
child 1387 435965ca8b63
equal deleted inserted replaced
977:c8e008b8cefe 1280:72a826dfcfbb
    68     return targetchoices
    68     return targetchoices
    69 
    69 
    70 def GetTargetCode(targetname):
    70 def GetTargetCode(targetname):
    71     return open(targets[targetname]["code"]).read()
    71     return open(targets[targetname]["code"]).read()
    72 
    72 
       
    73 def GetHeader():
       
    74     filename = path.join(path.split(__file__)[0],"beremiz.h")
       
    75     return open(filename).read()
       
    76 
    73 def GetCode(name):
    77 def GetCode(name):
    74     filename = path.join(path.split(__file__)[0],name + ".c")
    78     filename = path.join(path.split(__file__)[0],name + ".c")
    75     return open(filename).read()
    79     return open(filename).read()
    76 
    80