Skip to content

Commit

Permalink
Supressed eeschema stdout to avoid printing the ERC report
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Mar 19, 2020
1 parent b72c395 commit 28baf16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/eeschema_do
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ if __name__ == '__main__':
output_file_no_ext = os.path.join(output_dir, os.path.splitext(os.path.basename(args.schematic))[0])
with recorded_xvfb(output_dir if args.record else None, args.command+'_eeschema_screencast.ogv',
width=args.rec_width, height=args.rec_height, colordepth=24):
with PopenContext(['eeschema', args.schematic], close_fds=True, stderr=open(os.devnull, 'wb')) as eeschema_proc:
with PopenContext(['eeschema', args.schematic], close_fds=True,
stderr=open(os.devnull, 'wb'), stdout=open(os.devnull, 'wb')) as eeschema_proc:
eeschema_skip_errors()
if args.command == 'export':
# Export
Expand Down

0 comments on commit 28baf16

Please sign in to comment.