From 58eabf59fe4fb96f02ab5e3e594f86e1b0a817a7 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 3 Jul 2022 22:50:34 +0200 Subject: gerbolyze paste: fix zip logic --- gerbolyze/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerbolyze/__init__.py b/gerbolyze/__init__.py index fc3babf..5a8cc43 100755 --- a/gerbolyze/__init__.py +++ b/gerbolyze/__init__.py @@ -47,7 +47,7 @@ def paste(input_gerbers, input_svg, output_gerbers, is_zip, stack = gn.LayerStack.open(input_gerbers, lazy=True) (bb_min_x, bb_min_y), (bb_max_x, bb_max_y) = bounds = stack.board_bounds() - output_is_zip = output_gerbers.lower().endswith('.zip') if is_zip is None else is_zip + output_is_zip = output_gerbers.name.lower().endswith('.zip') if is_zip is None else is_zip # Create output dir if it does not exist yet. Do this now so we fail early if not output_is_zip: -- cgit