Skip to content

Commit 17165de

Browse files
authored
Merge pull request #11 from BIDS-Apps/fliem-cpfsav
copy instead of linking fsaverage folders
2 parents 9659912 + f1835c6 commit 17165de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

baracus/prepare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def run_prepare_all(bids_dir, freesurfer_dir, out_dir, subjects_to_analyze, sess
5151
fsav_dir = os.path.join(os.environ["FREESURFER_HOME"], "subjects")
5252
for fsav in ["fsaverage", "fsaverage4"]:
5353
if not os.path.exists(os.path.join(freesurfer_dir, fsav)):
54-
os.symlink(os.path.join(fsav_dir, fsav), os.path.join(freesurfer_dir, fsav))
55-
54+
cmd = "cp -rf {} {}".format(os.path.join(fsav_dir, fsav), os.path.join(freesurfer_dir, fsav))
55+
run(cmd)
5656
# check if freesurfer is available and run if missing
5757
freesurfer_subjects = []
5858
for subject in subjects_to_analyze:

0 commit comments

Comments
 (0)