From 00eb9594d6089640cbdfe242da3a16c6bdf1f73f Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 26 Oct 2023 00:03:27 +0200 Subject: svg-flatten: Add cubic bezier support for newer usvg versions --- gerbolyze/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerbolyze') diff --git a/gerbolyze/__init__.py b/gerbolyze/__init__.py index 671a071..f04cf1e 100755 --- a/gerbolyze/__init__.py +++ b/gerbolyze/__init__.py @@ -79,7 +79,7 @@ def paste(input_gerbers, input_svg, output_gerbers, is_zip, (('drill', 'plated'), stack.drill_pth), (('drill', 'nonplated'), stack.drill_npth)]: logging.info(f'Layer {side} {use}') - if (soup_layer := soup.find(id=f'g-{side}-{use}')): + if (soup_layer := soup.find('g', id=f'g-{side}-{use}')): if not soup_layer.contents: logging.info(f' Corresponding overlay layer is empty. Skipping.') else: -- cgit