1import os, json 2 3join = os.path.join 4 5def cmd(s): 6 print(s) 7 if os.system(s): 8 raise RuntimeError 9 10def chdir(): 11 os.chdir(os.path.split(os.path.abspath(__file__))[0]) 12 13