From 89de9e6a83838135887842b6a9f513a3b1b7f00c Mon Sep 17 00:00:00 2001 From: Dorota Jarecka Date: Wed, 15 Nov 2023 13:41:32 -0500 Subject: [PATCH] Update pydra/engine/environments.py Co-authored-by: Chris Markiewicz --- pydra/engine/environments.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pydra/engine/environments.py b/pydra/engine/environments.py index e6fe2b476..7580edbf9 100644 --- a/pydra/engine/environments.py +++ b/pydra/engine/environments.py @@ -79,10 +79,9 @@ def __init__(self, image, tag="latest", root="/mnt/pydra", xargs=None): self.xargs = xargs self.root = root - @staticmethod - def bind(loc, mode="ro", root="/mnt/pydra"): + def bind(self, loc, mode="ro"): loc_abs = Path(loc).absolute() - return f"{loc_abs}:{root}{loc_abs}:{mode}" + return f"{loc_abs}:{self.root}{loc_abs}:{mode}" class Docker(Container):