Skip to content

Commit

Permalink
fix: Use correct paths on windows for local manifest file
Browse files Browse the repository at this point in the history
  • Loading branch information
marofke committed Apr 15, 2024
1 parent a62e0ae commit 75d951a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/deadline/job_attachments/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 75d951a

Please sign in to comment.