Skip to content

Commit 3d029c0

Browse files
committed
fix: path reference for summary file
1 parent 83d6e70 commit 3d029c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/freesurfer/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ class SegStats(FSCommand):
635635

636636
def _list_outputs(self):
637637
outputs = self.output_spec().get()
638-
outputs['summary_file'] = self.inputs.summary_file
638+
outputs['summary_file'] = os.path.abspath(self.inputs.summary_file)
639639
if not isdefined(outputs['summary_file']):
640640
outputs['summary_file'] = os.path.join(os.getcwd(), 'summary.stats')
641641
suffices = dict(avgwf_txt_file='_avgwf.txt', avgwf_file='_avgwf.nii.gz',
@@ -654,7 +654,7 @@ def _list_outputs(self):
654654
newpath=os.getcwd(),
655655
use_ext=False)
656656
else:
657-
outputs[name] = value
657+
outputs[name] = os.path.abspath(value)
658658
return outputs
659659

660660
def _format_arg(self, name, spec, value):

0 commit comments

Comments
 (0)