equal
deleted
inserted
replaced
32 |
32 |
33 from os import listdir, path |
33 from os import listdir, path |
34 |
34 |
35 _base_path = path.split(__file__)[0] |
35 _base_path = path.split(__file__)[0] |
36 |
36 |
37 targets = [name for name in listdir(_base_path) if path.isdir(path.join(_base_path, name)) and name.upper() != "CVS" and not name.startswith("__")] |
37 targets = [name for name in listdir(_base_path) |
38 toolchains = [name for name in listdir(_base_path) if not path.isdir(path.join(_base_path, name)) and name.upper() != "CVS" and name.endswith(".py") and not name.startswith("__") and not name.endswith(".pyc")] |
38 if path.isdir(path.join(_base_path, name)) |
|
39 and not name.startswith("__")] |
|
40 toolchains = [name for name in listdir(_base_path) |
|
41 if not path.isdir(path.join(_base_path, name)) |
|
42 and name.endswith(".py") |
|
43 and not name.startswith("__") |
|
44 and not name.endswith(".pyc")] |
39 |
45 |
40 DictXSD_toolchain = {} |
46 DictXSD_toolchain = {} |
41 DictXSD_target = {} |
47 DictXSD_target = {} |
42 |
48 |
43 targetchoices = "" |
49 targetchoices = "" |
72 |
78 |
73 def code(name): |
79 def code(name): |
74 filename = path.join(path.split(__file__)[0],name + ".c") |
80 filename = path.join(path.split(__file__)[0],name + ".c") |
75 return open(filename).read() |
81 return open(filename).read() |
76 |
82 |
77 from toolchain_gcc import toolchain_gcc |
|
78 from toolchain_makefile import toolchain_makefile |
|