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