def __init__(self, step): # This is the only interesting part of this executor. Basically # it derives everything from SP_Step_Executor but does not # use the Queue mechanism, so the __init__ and the run # functions are copied from Base_Step_Executor Base_Step_Executor.__init__(self, step) self.run_mode='interactive' self.host = None
def run(self): try: runner = Base_Step_Executor.run(self) yreq = next(runner) while True: yreq = runner.send(yreq) except StopIteration as e: return e.value
def run(self): return Base_Step_Executor.run(self)