Skip to content

Commit

Permalink
Write the log as binary
Browse files Browse the repository at this point in the history
Instead of trying to decode these bytes, why not just write them directly to the log file?
Also I'm adding stderr at the end now, after 3 newlines, because maybe it's useful sometimes.
  • Loading branch information
bonjorno7 committed Jul 21, 2021
1 parent ac76a11 commit 0a33d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/types/model_export/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def compile_qc(self):
code = pipe.returncode
if code is None:
log = self.directory.joinpath(f'{self.stem}.log')
log.write_text(pipe.communicate()[0].decode('unicode-escape'))
log.write_bytes(b'\n\n\n'.join(pipe.communicate()))
else:
break

Expand Down

0 comments on commit 0a33d28

Please sign in to comment.