Skip to content

Commit 9b6a8de

Browse files
authored
Merge pull request #148 from jmchilton/kwarg_fix
Hack around duplicate stagedir kwd.
2 parents d77b058 + 9cabec5 commit 9b6a8de

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
@@ -255,7 +255,11 @@ def rm_pending_output_callback(output_callback, jobcachepending,
255255

256256

257257
builder.pathmapper = None
258-
builder.pathmapper = self.makePathMapper(reffiles, builder.stagedir, **kwargs)
258+
make_path_mapper_kwargs = kwargs
259+
if "stagedir" in make_path_mapper_kwargs:
260+
make_path_mapper_kwargs = make_path_mapper_kwargs.copy()
261+
del make_path_mapper_kwargs["stagedir"]
262+
builder.pathmapper = self.makePathMapper(reffiles, builder.stagedir, **make_path_mapper_kwargs)
259263
builder.requirements = j.requirements
260264

261265
_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)