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 8382857 commit 6c889e5Copy full SHA for 6c889e5
nipype/interfaces/fsl/preprocess.py
@@ -169,11 +169,11 @@ def _gen_outfilename(self):
169
out_file = self.inputs.out_file
170
if not isdefined(out_file) and isdefined(self.inputs.in_file):
171
out_file = self._gen_fname(self.inputs.in_file, suffix="_brain")
172
- return os.path.abspath(out_file)
+ return op.relpath(out_file, start=os.getcwd())
173
174
def _list_outputs(self):
175
outputs = self.output_spec().get()
176
- outputs["out_file"] = self._gen_outfilename()
+ outputs["out_file"] = os.path.abspath(self._gen_outfilename())
177
178
basename = os.path.basename(outputs["out_file"])
179
cwd = os.path.dirname(outputs["out_file"])
0 commit comments