Skip to content

Commit fb98141

Browse files
author
Peter Amstutz
committed
Rename prefix to pathprefix to fix mypy type confusion.
1 parent 51fde70 commit fb98141

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cwltool/draft2tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ def collect_output(self, schema, builder, outdir, fs_access, compute_checksum=Tr
649649
for primary in aslist(r):
650650
if isinstance(primary, dict):
651651
primary.setdefault("secondaryFiles", [])
652-
prefix = primary["path"][0:primary["path"].rindex("/")+1]
652+
pathprefix = primary["path"][0:primary["path"].rindex("/")+1]
653653
for sf in aslist(schema["secondaryFiles"]):
654654
if isinstance(sf, dict) or "$(" in sf or "${" in sf:
655655
sfpath = builder.do_eval(sf, context=primary)
@@ -662,7 +662,7 @@ def collect_output(self, schema, builder, outdir, fs_access, compute_checksum=Tr
662662
if subst:
663663
sfitem = {"path": substitute(primary["path"], sfitem)}
664664
else:
665-
sfitem = {"path": prefix+sfitem}
665+
sfitem = {"path": pathprefix+sfitem}
666666
if "path" in sfitem and "location" not in sfitem:
667667
revmap(sfitem)
668668
if fs_access.isfile(sfitem["location"]):

0 commit comments

Comments
 (0)