diff options
author | jaseg <git@jaseg.de> | 2022-07-03 22:50:34 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-07-03 22:50:34 +0200 |
commit | 58eabf59fe4fb96f02ab5e3e594f86e1b0a817a7 (patch) | |
tree | 6779d201d29887bdccef90e0ef3ce4da8b12bf0d /gerbolyze | |
parent | 85460a7c55aa96848347a91ad9ed498db4a31b19 (diff) | |
download | gerbolyze-58eabf59fe4fb96f02ab5e3e594f86e1b0a817a7.tar.gz gerbolyze-58eabf59fe4fb96f02ab5e3e594f86e1b0a817a7.tar.bz2 gerbolyze-58eabf59fe4fb96f02ab5e3e594f86e1b0a817a7.zip |
gerbolyze paste: fix zip logic
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 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: |