Skip to content

Commit 34a0b77

Browse files
authored
Merge pull request #2180 from mgxd/fix/wrapper-path
FIX: Coerce license path to pathlike
2 parents 7340c22 + 3679d8c commit 34a0b77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wrapper/fmriprep_docker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ def __call__(self, parser, namespace, values, option_string=None):
237237

238238
def _is_file(path, parser):
239239
"""Ensure a given path exists and it is a file."""
240+
path = os.path.abspath(path)
240241
if not os.path.isfile(path):
241242
raise parser.error(
242243
"Path should point to a file (or symlink of file): <%s>." % path

0 commit comments

Comments
 (0)