Skip to content

Commit 9cabec5

Browse files
committed
Hack around duplicate stagedir kwd.
1 parent 8e757d4 commit 9cabec5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cwltool/draft2tool.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,11 @@ def rm_pending_output_callback(output_callback, jobcachepending,
242242

243243

244244
builder.pathmapper = None
245-
builder.pathmapper = self.makePathMapper(reffiles, builder.stagedir, **kwargs)
245+
make_path_mapper_kwargs = kwargs
246+
if "stagedir" in make_path_mapper_kwargs:
247+
make_path_mapper_kwargs = make_path_mapper_kwargs.copy()
248+
del make_path_mapper_kwargs["stagedir"]
249+
builder.pathmapper = self.makePathMapper(reffiles, builder.stagedir, **make_path_mapper_kwargs)
246250
builder.requirements = j.requirements
247251

248252
_logger.debug(u"[job %s] path mappings is %s", j.name, json.dumps({p: builder.pathmapper.mapper(p) for p in builder.pathmapper.files()}, indent=4))

0 commit comments

Comments
 (0)