Skip to content

Commit 89c1e27

Browse files
authored
Merge pull request #721 from djarecka/env
small fix
2 parents 73e6856 + d1793cb commit 89c1e27

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pydra/engine/environments.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,11 @@ def execute(self, task):
9292
# mounting all input locations
9393
mounts = task.get_bindings(root=self.root)
9494

95-
# todo adding xargsy etc
9695
docker_args = [
9796
"docker",
9897
"run",
9998
"-v",
100-
self.bind(task.cache_dir, "rw", self.root),
99+
self.bind(task.cache_dir, "rw"),
101100
*self.xargs,
102101
]
103102
docker_args.extend(
@@ -134,9 +133,9 @@ def execute(self, task):
134133
"singularity",
135134
"exec",
136135
"-B",
137-
self.bind(task.cache_dir, "rw", self.root),
136+
self.bind(task.cache_dir, "rw"),
137+
*self.xargs,
138138
]
139-
singularity_args.extend(self.xargs)
140139
singularity_args.extend(
141140
" ".join(
142141
[f"-B {key}:{val[0]}:{val[1]}" for (key, val) in mounts.items()]

0 commit comments

Comments
 (0)