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 714b4aa commit a2d7aa3Copy full SHA for a2d7aa3
nipype/interfaces/afni/base.py
@@ -146,7 +146,10 @@ def set_default_output_type(cls, outputtype):
146
147
def _overload_extension(self, value):
148
path, base, _ = split_filename(value)
149
- return os.path.join(path, base + Info.outputtype_to_ext(self.inputs.outputtype))
+ new_path = os.path.join(path, base + Info.outputtype_to_ext(self.inputs.outputtype))
150
+ #some AFNI commands assume the relative path is relative to the input not the CWD
151
+ if not os.path.isabs(new_path):
152
+ return "./" + new_path
153
154
def _list_outputs(self):
155
outputs = super(AFNICommand, self)._list_outputs()
0 commit comments