From 4bb99811221d0cbbf52e6ab59a76bbe6bd8fba6c Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 13 Jun 2021 15:13:29 +0200 Subject: Make pcb-tools pytest pass without warnings --- gerbonara/gerber/render/cairo_backend.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gerbonara/gerber/render') diff --git a/gerbonara/gerber/render/cairo_backend.py b/gerbonara/gerber/render/cairo_backend.py index 03366f6..cb2f37c 100644 --- a/gerbonara/gerber/render/cairo_backend.py +++ b/gerbonara/gerber/render/cairo_backend.py @@ -136,8 +136,10 @@ class GerberCairoContext(GerberContext): is_svg = os.path.splitext(filename.lower())[1] == '.svg' except: is_svg = False + if verbose: print('[Render]: Writing image to {}'.format(filename)) + if is_svg: self.surface.finish() self.surface_buffer.flush() -- cgit