From 4ace46e14192266ff78cf06f555cb7b24f80025e Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 31 Jan 2024 12:31:09 +0100 Subject: [PATCH] small bugfix for python tester --- satrs-example/pyclient/pus_tc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/satrs-example/pyclient/pus_tc.py b/satrs-example/pyclient/pus_tc.py index 706d3ba..f73b755 100644 --- a/satrs-example/pyclient/pus_tc.py +++ b/satrs-example/pyclient/pus_tc.py @@ -45,7 +45,8 @@ def create_cmd_definition_tree() -> CmdTreeNode: def pack_pus_telecommands(q: DefaultPusQueueHelper, cmd_path: str): - cmd_path_list = cmd_path.split("/") + # It should always be at least the root path "/", so we split of the empty portion left of it. + cmd_path_list = cmd_path.split("/")[1:] if len(cmd_path_list) == 0: _LOGGER.warning("empty command path") return