[Panelize] Added preview image to the targets

This commit is contained in:
Salvador E. Tropea 2022-12-03 20:48:10 -03:00
parent 2cea9925d5
commit 4c356f14aa
1 changed files with 5 additions and 1 deletions

View File

@ -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