Skip to content

Commit 6c889e5

Browse files
committed
Changed BET interface to generate relative and list absolute out_file path.
1 parent 8382857 commit 6c889e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/fsl/preprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ def _gen_outfilename(self):
169169
out_file = self.inputs.out_file
170170
if not isdefined(out_file) and isdefined(self.inputs.in_file):
171171
out_file = self._gen_fname(self.inputs.in_file, suffix="_brain")
172-
return os.path.abspath(out_file)
172+
return op.relpath(out_file, start=os.getcwd())
173173

174174
def _list_outputs(self):
175175
outputs = self.output_spec().get()
176-
outputs["out_file"] = self._gen_outfilename()
176+
outputs["out_file"] = os.path.abspath(self._gen_outfilename())
177177

178178
basename = os.path.basename(outputs["out_file"])
179179
cwd = os.path.dirname(outputs["out_file"])

0 commit comments

Comments
 (0)