From 75d951ae8da00bbf7f7c305e6faa3ca61fef08a0 Mon Sep 17 00:00:00 2001 From: Caden Marofke <132690522+marofke@users.noreply.github.com> Date: Mon, 15 Apr 2024 12:33:21 -0500 Subject: [PATCH] fix: Use correct paths on windows for local manifest file --- src/deadline/job_attachments/upload.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/deadline/job_attachments/upload.py b/src/deadline/job_attachments/upload.py index 87d13b56d..cbdf84524 100644 --- a/src/deadline/job_attachments/upload.py +++ b/src/deadline/job_attachments/upload.py @@ -171,8 +171,11 @@ def upload_assets( manifest_name = f"{manifest_name_prefix}_input" if manifest_write_dir: + prefix_path = partial_manifest_prefix + if sys.platform == "win32": + prefix_path = prefix_path.replace("/", "\\") local_manifest_file = os.path.join( - manifest_write_dir, "manifests", partial_manifest_prefix, manifest_name + manifest_write_dir, "manifests", prefix_path, manifest_name ) logger.info(f"Creating local manifest file: {local_manifest_file}\n") os.makedirs(os.path.dirname(local_manifest_file), exist_ok=True)