예제 #1
0
파일: plugin.py 프로젝트: ssut/harpseal
 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
파일: utils_test.py 프로젝트: ssut/harpseal
 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