diff --git a/lib/mrtrix3/run.py b/lib/mrtrix3/run.py index 3651082261..b4af7dc8b7 100644 --- a/lib/mrtrix3/run.py +++ b/lib/mrtrix3/run.py @@ -473,7 +473,7 @@ def finalise_temp_file(iostream): if shared.get_scratch_dir(): with shared.lock: with open(os.path.join(shared.get_scratch_dir(), 'log.txt'), 'a') as outfile: - outfile.write(cmdstring + '\n') + outfile.write(' '.join(cmdsplit) + '\n') return CommandReturn(return_stdout, return_stderr)