Skip to content

Commit ccf1d14

Browse files
committed
FIX: Bindings
- Ensure license file bind path is absolute - Ensure output directory is not read only
1 parent 177c0b6 commit ccf1d14

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

wrapper/nibabies_wrapper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ def _get_posargs(usage):
261261
t_flags = sum(map(flag_re.findall, t_options), [])
262262

263263
# The following code makes this assumption
264-
#assert w_flags[:2] == ["h", "version"]
265-
#assert w_posargs.replace("]", "").replace("[", "") == t_posargs
264+
# assert w_flags[:2] == ["h", "version"]
265+
# assert w_posargs.replace("]", "").replace("[", "") == t_posargs
266266

267267
# Make sure we're not clobbering options we don't mean to
268268
overlap = set(w_flags).intersection(t_flags)
@@ -619,7 +619,7 @@ def main():
619619
container.add_envvar(tuple(envvar))
620620

621621
if opts.fs_license_file:
622-
container.add_mount(opts.fs_license_file, "opt/freesurfer/license.txt")
622+
container.add_mount(opts.fs_license_file, "/opt/freesurfer/license.txt")
623623

624624
main_args = []
625625
if opts.bids_dir:
@@ -629,7 +629,7 @@ def main():
629629
if not os.path.exists(opts.output_dir):
630630
# create it before the container does
631631
os.makedirs(opts.output_dir)
632-
container.add_mount(opts.output_dir, "/out")
632+
container.add_mount(opts.output_dir, "/out", read_only=False)
633633
main_args.append("/out")
634634
main_args.append(opts.analysis_level)
635635

0 commit comments

Comments
 (0)