diff options
author | jaseg <git@jaseg.de> | 2023-10-26 00:03:27 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-10-26 00:04:17 +0200 |
commit | 00eb9594d6089640cbdfe242da3a16c6bdf1f73f (patch) | |
tree | 86a40a5471d1686cd80d3a54cfcbc3ffefc3f880 /gerbolyze | |
parent | 8ab0c9fa017b5ead2e3f5cfc892b242cd0bbc908 (diff) | |
download | gerbolyze-00eb9594d6089640cbdfe242da3a16c6bdf1f73f.tar.gz gerbolyze-00eb9594d6089640cbdfe242da3a16c6bdf1f73f.tar.bz2 gerbolyze-00eb9594d6089640cbdfe242da3a16c6bdf1f73f.zip |
svg-flatten: Add cubic bezier support for newer usvg versions
Diffstat (limited to 'gerbolyze')
-rwxr-xr-x | gerbolyze/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |