Beispiel #1
0
 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
Beispiel #2
0
 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
Beispiel #3
0
 def run(self):
     return Base_Step_Executor.run(self)