from interpreter import * import os def on_abort(self, *words): print("aborting") self.execute("M65 P00") self.execute("M65 P01") self.execute("T0") os.system("axis-remote --reload ") def reload(self, *words): os.system("axis-remote --reload ")