From 22837a332e764371a326c42a276f35a9cd6c1eb1 Mon Sep 17 00:00:00 2001 From: James Clarke Date: Wed, 22 Jan 2025 15:21:11 +0000 Subject: [PATCH] Skip first argument when calling main The first argument of sys.argv is the launch script, so we don't need that. --- .../workbench/workbench/app/mantidworkbench_launch_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/applications/workbench/workbench/app/mantidworkbench_launch_wrapper.py b/qt/applications/workbench/workbench/app/mantidworkbench_launch_wrapper.py index be48201e9fff..ef3ec64a929a 100644 --- a/qt/applications/workbench/workbench/app/mantidworkbench_launch_wrapper.py +++ b/qt/applications/workbench/workbench/app/mantidworkbench_launch_wrapper.py @@ -18,7 +18,7 @@ def launch(args=None): command = ["launch_mantidworkbench"] + args[1:] subprocess.run(command) else: - main(args) + main(args[1:]) if __name__ == "__main__":