github/workflows/pycopy-test: Upgrade Pycopy to 3.6.1.
[ScratchABlock.git] / arch.py
blobb4baa05bd87762959c04d9ffd8f4a258a04a2360
2 arch_m = None
4 # Default bitness if specific arch is not loaded
5 BITNESS = 32
8 def load_arch(name):
9 global arch_m
10 arch_m = __import__("arch_" + name)
11 for var in dir(arch_m):
12 if var.startswith("__"):
13 continue
14 globals()[var] = getattr(arch_m, var)
17 if __name__ == "__main__":
18 load_arch("xtensa")
19 print(BITNESS)