Skip to content

Commit 7eee9ff

Browse files
authored
Change in class MCFLIRT
Change the variable `cwd=os.getcwd()` to `cwd=os.path.dirname(outputs['out_file'])`
1 parent f2e0bfa commit 7eee9ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nipype/interfaces/fsl/preprocess.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,10 +821,12 @@ def _format_arg(self, name, spec, value):
821821

822822
def _list_outputs(self):
823823
# cwd = os.getcwd()
824-
cwd = os.path.dirname(out_file)
824+
825825
outputs = self._outputs().get()
826826

827827
outputs['out_file'] = self._gen_outfilename()
828+
829+
cwd = os.path.dirname(outputs['out_file'])
828830

829831
if isdefined(self.inputs.stats_imgs) and self.inputs.stats_imgs:
830832
outputs['variance_img'] = self._gen_fname(

0 commit comments

Comments
 (0)