aboutsummaryrefslogtreecommitdiff
path: root/gerbolyze/__init__.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-03-31 22:31:58 +0200
committerjaseg <git@jaseg.de>2023-03-31 22:31:58 +0200
commite1c40e8c80fae86239b67225ca6721266129e8de (patch)
treecbd5a8a1aacbf6e5b9c98b35038e5d787a661903 /gerbolyze/__init__.py
parent4a3a9f15820543790c7e7c4e9bcb6da6fea78033 (diff)
downloadgerbolyze-e1c40e8c80fae86239b67225ca6721266129e8de.tar.gz
gerbolyze-e1c40e8c80fae86239b67225ca6721266129e8de.tar.bz2
gerbolyze-e1c40e8c80fae86239b67225ca6721266129e8de.zip
Fix failing tests
Diffstat (limited to 'gerbolyze/__init__.py')
-rwxr-xr-xgerbolyze/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gerbolyze/__init__.py b/gerbolyze/__init__.py
index 9cce66d..76cedd6 100755
--- a/gerbolyze/__init__.py
+++ b/gerbolyze/__init__.py
@@ -266,7 +266,7 @@ def convert(input_svg, output_gerbers, is_zip, dilate, curve_tolerance, no_subtr
subtract_map = parse_subtract_script('' if no_subtract else subtract, dilate, default_script=DEFAULT_CONVERT_SUB_SCRIPT)
output_is_zip = output_gerbers.name.lower().endswith('.zip') if is_zip is None else is_zip
- stack = gn.LayerStack({}, [], board_name=input_svg.stem, original_path=input_svg)
+ stack = gn.LayerStack({}, None, None, [], board_name=input_svg.stem, original_path=input_svg)
for group_id, label in get_layers_from_svg(input_svg.read_text()):
if not group_id or not label or 'no export' in label:
@@ -326,7 +326,6 @@ def convert(input_svg, output_gerbers, is_zip, dilate, curve_tolerance, no_subtr
stack.save_to_directory(output_gerbers, naming_scheme=naming_scheme)
-
# Subtraction script handling
#============================