targets/__init__.py
changeset 1757 0de89da92ee0
parent 1749 d73b64672238
child 1758 845ca626db09
equal deleted inserted replaced
1756:08e4394ff4fb 1757:0de89da92ee0
    66     DictXSD_toolchain = {}
    66     DictXSD_toolchain = {}
    67     targetchoices = ""
    67     targetchoices = ""
    68 
    68 
    69     # Get all xsd toolchains
    69     # Get all xsd toolchains
    70     for toolchainname, xsdfilename in toolchains.iteritems():
    70     for toolchainname, xsdfilename in toolchains.iteritems():
    71          if path.isfile(xsdfilename):
    71         if path.isfile(xsdfilename):
    72              DictXSD_toolchain["toolchain_"+toolchainname] = \
    72             DictXSD_toolchain["toolchain_"+toolchainname] = open(xsdfilename).read()
    73                 open(xsdfilename).read()
       
    74 
    73 
    75     # Get all xsd targets
    74     # Get all xsd targets
    76     for targetname, nfo in targets.iteritems():
    75     for targetname, nfo in targets.iteritems():
    77         xsd_string = open(nfo["xsd"]).read()
    76         xsd_string = open(nfo["xsd"]).read()
    78         targetchoices +=  xsd_string % DictXSD_toolchain
    77         targetchoices +=  xsd_string % DictXSD_toolchain