diff --git a/nipype/interfaces/freesurfer/model.py b/nipype/interfaces/freesurfer/model.py index 607586d6f6..2980f147d8 100644 --- a/nipype/interfaces/freesurfer/model.py +++ b/nipype/interfaces/freesurfer/model.py @@ -752,8 +752,9 @@ def _list_outputs(self): def _format_arg(self, name, spec, value): if name in ('summary_file', 'avgwf_txt_file'): - if not os.path.isabs(value): - value = os.path.join('.', value) + if not isinstance(value, bool): + if not os.path.isabs(value): + value = os.path.join('.', value) if name in ['avgwf_txt_file', 'avgwf_file', 'sf_avg_file']: if isinstance(value, bool): fname = self._list_outputs()[name]