From a7b31e319a98f853d962b5cf6d5dd362b358ede3 Mon Sep 17 00:00:00 2001 From: Roger Janusiak Date: Thu, 14 May 2026 16:23:16 -0700 Subject: [PATCH] Solved issue #94 allowing r21 to run. --- servicex_local/science_images.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servicex_local/science_images.py b/servicex_local/science_images.py index 5bb1021..c632d31 100644 --- a/servicex_local/science_images.py +++ b/servicex_local/science_images.py @@ -152,7 +152,7 @@ def write_kickoff_script(generated_files_dir: Path) -> None: file_to_run = info["command"] if file_to_run.startswith("/generated/"): - file_to_run = os.path.join(script_dir, file_to_run.removeprefix("/generated/")) + file_to_run = os.path.join(script_dir, file_to_run[len("/generated/"):]) elif not os.path.isabs(file_to_run): file_to_run = os.path.join(script_dir, file_to_run) @@ -283,7 +283,7 @@ def transform( file_to_run = info["command"] if file_to_run.startswith("/generated/"): - file_to_run = os.path.join(script_dir, file_to_run.removeprefix("/generated/")) + file_to_run = os.path.join(script_dir, file_to_run[len("/generated/"):]) elif not os.path.isabs(file_to_run): file_to_run = os.path.join(script_dir, file_to_run)