Ejemplo n.º 1
0
 def call(self, command):
     """Execute a command on the event-loop and then return the result when finished."""
     if Plugin._app is None:
         raise AssertionError("The property ._app is not assigned.")
     result = yield from execute(command)
     return result
Ejemplo n.º 2
0
 def test(future):
     result = yield from commands.execute('pwd')
     future.set_result(result)
Ejemplo n.º 3
0
 def test(future):
     result = yield from commands.execute('pwd')
     future.set_result(result)
Ejemplo n.º 4
0
 def call(self, command):
     """Execute a command on the event-loop and then return the result when finished."""
     if Plugin._app is None:
         raise AssertionError("The property ._app is not assigned.")
     result = yield from execute(command)
     return result