We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b36cc9c commit bf4cd81Copy full SHA for bf4cd81
nipype/interfaces/afni/base.py
@@ -214,9 +214,10 @@ def _gen_filename(self, name):
214
215
_, base, _ = split_filename(
216
getattr(self.inputs, trait_spec.name_source))
217
- return self._gen_fname(basename=base, prefix=prefix, suffix=suffix, cwd='')
+ return self._gen_fname(basename=base, prefix=prefix, suffix=suffix, cwd=os.getcwd())
218
else:
219
- return super(AFNICommand, self)._gen_filename(name)
+ return os.path.join(os.getcwd(),
220
+ super(AFNICommand, self)._gen_filename(name))
221
222
def _overload_extension(self, value):
223
path, base, _ = split_filename(value)
0 commit comments