Skip to content

Commit 89de9e6

Browse files
djareckaeffigies
andauthored
Update pydra/engine/environments.py
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 9673908 commit 89de9e6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pydra/engine/environments.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,9 @@ def __init__(self, image, tag="latest", root="/mnt/pydra", xargs=None):
7979
self.xargs = xargs
8080
self.root = root
8181

82-
@staticmethod
83-
def bind(loc, mode="ro", root="/mnt/pydra"):
82+
def bind(self, loc, mode="ro"):
8483
loc_abs = Path(loc).absolute()
85-
return f"{loc_abs}:{root}{loc_abs}:{mode}"
84+
return f"{loc_abs}:{self.root}{loc_abs}:{mode}"
8685

8786

8887
class Docker(Container):

0 commit comments

Comments
 (0)