Skip to content

Commit d34a0c9

Browse files
tetronmr-c
authored andcommitted
Handle relative paths and locations in cwl.output.json
1 parent 87f3b01 commit d34a0c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cwltool/command_line_tool.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -252,13 +252,14 @@ def revmap_file(
252252
if location.startswith("file://"):
253253
f["path"] = uri_file_path(location)
254254
else:
255+
f["location"] = builder.fs_access.join(outdir, f["location"])
255256
return f
256257

257258
if "dirname" in f:
258259
del f["dirname"]
259260

260261
if "path" in f:
261-
path = cast(str, f["path"])
262+
path = builder.fs_access.join(builder.outdir, cast(str, f["path"]))
262263
uripath = file_uri(path)
263264
del f["path"]
264265

0 commit comments

Comments
 (0)