Skip to content

Commit 98e475c

Browse files
committed
Revert "added "./" in front of all non absolute output paths for AFNI"
This reverts commit a2d7aa3.
1 parent 552fed3 commit 98e475c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

nipype/interfaces/afni/base.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,7 @@ def set_default_output_type(cls, outputtype):
146146

147147
def _overload_extension(self, value):
148148
path, base, _ = split_filename(value)
149-
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
149+
return os.path.join(path, base + Info.outputtype_to_ext(self.inputs.outputtype))
153150

154151
def _list_outputs(self):
155152
outputs = super(AFNICommand, self)._list_outputs()

0 commit comments

Comments
 (0)