Пример #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
Пример #2
0
 def test(future):
     result = yield from commands.execute('pwd')
     future.set_result(result)
Пример #3
0
 def test(future):
     result = yield from commands.execute('pwd')
     future.set_result(result)
Пример #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