@@ -261,8 +261,8 @@ def _get_posargs(usage):
261
261
t_flags = sum (map (flag_re .findall , t_options ), [])
262
262
263
263
# 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
266
266
267
267
# Make sure we're not clobbering options we don't mean to
268
268
overlap = set (w_flags ).intersection (t_flags )
@@ -619,7 +619,7 @@ def main():
619
619
container .add_envvar (tuple (envvar ))
620
620
621
621
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" )
623
623
624
624
main_args = []
625
625
if opts .bids_dir :
@@ -629,7 +629,7 @@ def main():
629
629
if not os .path .exists (opts .output_dir ):
630
630
# create it before the container does
631
631
os .makedirs (opts .output_dir )
632
- container .add_mount (opts .output_dir , "/out" )
632
+ container .add_mount (opts .output_dir , "/out" , read_only = False )
633
633
main_args .append ("/out" )
634
634
main_args .append (opts .analysis_level )
635
635
0 commit comments