From 2db28d40f54565044cd8e7842a4b7efa35a34b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20L=C3=BCke?= Date: Wed, 1 Jan 2025 21:26:14 +0100 Subject: [PATCH] add another python test plugin --- src/mana_python_plugin_test_debugpy.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/mana_python_plugin_test_debugpy.py diff --git a/src/mana_python_plugin_test_debugpy.py b/src/mana_python_plugin_test_debugpy.py new file mode 100644 index 0000000..76181a7 --- /dev/null +++ b/src/mana_python_plugin_test_debugpy.py @@ -0,0 +1,21 @@ +import sys + +def begin_run(runDescription: str): + print(f"python: begin_run - python version: {sys.version}") + try: + import debugpy + debugpy.listen(5678) + print("python: debugpy listening on :5678") + except Exception as e: + print(f"python: could not start debugpy: {e}") + +def end_run(runDescription: str): + print(f"python: end_run") + +def process_event(eventIndex: int, dataArrays): + return + print(f"event[{eventIndex}]: {dataArrays}") + +def process_system_event(data): + return + print(f"python: system_event: size={len(data)}")