From d1793cb5de87e1d701ef1df01c0eba9f6b875a0a Mon Sep 17 00:00:00 2001 From: Dorota Jarecka Date: Wed, 15 Nov 2023 14:07:50 -0500 Subject: [PATCH] small fix --- pydra/engine/environments.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pydra/engine/environments.py b/pydra/engine/environments.py index 2249f097c..3c60927bc 100644 --- a/pydra/engine/environments.py +++ b/pydra/engine/environments.py @@ -92,12 +92,11 @@ def execute(self, task): # mounting all input locations mounts = task.get_bindings(root=self.root) - # todo adding xargsy etc docker_args = [ "docker", "run", "-v", - self.bind(task.cache_dir, "rw", self.root), + self.bind(task.cache_dir, "rw"), *self.xargs, ] docker_args.extend( @@ -134,9 +133,9 @@ def execute(self, task): "singularity", "exec", "-B", - self.bind(task.cache_dir, "rw", self.root), + self.bind(task.cache_dir, "rw"), + *self.xargs, ] - singularity_args.extend(self.xargs) singularity_args.extend( " ".join( [f"-B {key}:{val[0]}:{val[1]}" for (key, val) in mounts.items()]