コード例 #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
ファイル: utils_test.py プロジェクト: frostpuppet/harpseal
 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
ファイル: plugin.py プロジェクト: frostpuppet/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