Skip to content

Commit bf4cd81

Browse files
author
bpinsard
committed
fixing wrong output directory in afni base gen_filename
1 parent b36cc9c commit bf4cd81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nipype/interfaces/afni/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,10 @@ def _gen_filename(self, name):
214214

215215
_, base, _ = split_filename(
216216
getattr(self.inputs, trait_spec.name_source))
217-
return self._gen_fname(basename=base, prefix=prefix, suffix=suffix, cwd='')
217+
return self._gen_fname(basename=base, prefix=prefix, suffix=suffix, cwd=os.getcwd())
218218
else:
219-
return super(AFNICommand, self)._gen_filename(name)
219+
return os.path.join(os.getcwd(),
220+
super(AFNICommand, self)._gen_filename(name))
220221

221222
def _overload_extension(self, value):
222223
path, base, _ = split_filename(value)

0 commit comments

Comments
 (0)