(self)
| 70 | self.callback = ctypes.CFUNCTYPE(None, ctypes.c_void_p)(lambda ctxt: self.execute()) |
| 71 | |
| 72 | def execute(self): |
| 73 | old_interpreter = None |
| 74 | if hasattr(PythonScriptingInstance._interpreter, "value"): |
| 75 | old_interpreter = PythonScriptingInstance._interpreter.value |
| 76 | PythonScriptingInstance._interpreter.value = self.interpreter |
| 77 | try: |
| 78 | self.func() |
| 79 | finally: |
| 80 | PythonScriptingInstance._interpreter.value = old_interpreter |
| 81 | self.__class__._actions.remove(self) |
| 82 | |
| 83 | |
| 84 | class ScriptingOutputListener: |
no test coverage detected