Skip to content

Commit 550c406

Browse files
committed
taking care of case when dockeroutputdirectory provided is not absolute path on windows
1 parent 681da6b commit 550c406

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cwltool/stdfsaccess.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,7 @@ def realpath(self, path): # type: (Text) -> Text
6363
# On windows os.path.realpath appends unecessary Drive, here we would avoid that
6464
def docker_compatible_realpath(self, path): # type: (Text) -> Text
6565
if onWindows():
66-
return path
66+
if path.startswith('/'):
67+
return path
68+
return '/'+path
6769
return os.path.realpath(path)

0 commit comments

Comments
 (0)