From 4c356f14aa5254c69e08dcb7285f88d594ab24b4 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Sat, 3 Dec 2022 20:48:10 -0300 Subject: [PATCH] [Panelize] Added preview image to the targets --- kibot/out_panelize.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kibot/out_panelize.py b/kibot/out_panelize.py index d674265b..1e40db94 100644 --- a/kibot/out_panelize.py +++ b/kibot/out_panelize.py @@ -772,7 +772,11 @@ class PanelizeOptions(VariantOptions): os.remove(f) def get_targets(self, out_dir): - return [self._parent.expand_filename(out_dir, self.output)] + pcb_name = self._parent.expand_filename(out_dir, self.output) + files = [pcb_name] + if self.create_preview: + files.append(os.path.splitext(pcb_name)[0]+'.png') + return files @output_class