Skip to content

Commit bf7d6b5

Browse files
author
Peter Amstutz
committed
Apply dirname to workflow path to get correct behavior from os.path.relpath.
1 parent 66c1bac commit bf7d6b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def loadref(b, u):
453453
deps["secondaryFiles"] = sf
454454

455455
if relative_deps:
456-
base = basedir if basedir else obj["id"]
456+
base = basedir if basedir else os.path.dirname(obj["id"])
457457
def makeRelative(u):
458458
if ":" in u.split("/")[0] and not u.startswith("file://"):
459459
return u

0 commit comments

Comments
 (0)