From 12a4a52d547a68ec7c5139dab957c2d806ab972a Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 4 Oct 2021 10:06:40 +0200 Subject: [PATCH] printing out version string of spacepackets --- tmtc_client_cli.py | 4 +++- tmtc_client_gui.py | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tmtc_client_cli.py b/tmtc_client_cli.py index d3f5b15..3fc7ded 100755 --- a/tmtc_client_cli.py +++ b/tmtc_client_cli.py @@ -35,6 +35,7 @@ from pus_tm.factory_hook import ccsds_tm_handler try: from tmtccmd.runner import initialize_tmtc_commander, run_tmtc_commander, add_ccsds_handler from tmtccmd.ccsds.handler import CcsdsTmHandler + import spacepackets except ImportError as error: run_tmtc_commander = None initialize_tmtc_commander = None @@ -46,7 +47,8 @@ except ImportError as error: def main(): hook_obj = EiveHookObject() - print(f"-- eive tmtc version {__version__}") + print(f'-- eive tmtc version {__version__} --') + print(f'-- spacepackets version {spacepackets.__version__} --') initialize_tmtc_commander(hook_object=hook_obj) ccsds_handler = CcsdsTmHandler() ccsds_handler.add_tm_handler(apid=PUS_APID, pus_tm_handler=ccsds_tm_handler, max_queue_len=50) diff --git a/tmtc_client_gui.py b/tmtc_client_gui.py index ddcfa07..09d363c 100755 --- a/tmtc_client_gui.py +++ b/tmtc_client_gui.py @@ -35,6 +35,7 @@ from pus_tm.factory_hook import ccsds_tm_handler try: from tmtccmd.runner import initialize_tmtc_commander, run_tmtc_commander, add_ccsds_handler from tmtccmd.ccsds.handler import CcsdsTmHandler + import spacepackets except ImportError as error: run_tmtc_commander = None initialize_tmtc_commander = None @@ -47,6 +48,7 @@ except ImportError as error: def main(): hook_obj = EiveHookObject() print(f"-- eive tmtc version {__version__}") + print(f'-- spacepackets version {spacepackets.__version__} --') initialize_tmtc_commander(hook_object=hook_obj) ccsds_handler = CcsdsTmHandler() ccsds_handler.add_tm_handler(apid=PUS_APID, pus_tm_handler=ccsds_tm_handler, max_queue_len=50)