From 77b7abc24b0347f65b00e7dc4770eb587c7d6529 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Sat, 15 Apr 2023 21:06:51 -0300 Subject: [PATCH] [Panelize][Fixed] Keep temporals only if fail --- kibot/out_panelize.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kibot/out_panelize.py b/kibot/out_panelize.py index 038c5b4b..00467118 100644 --- a/kibot/out_panelize.py +++ b/kibot/out_panelize.py @@ -709,11 +709,13 @@ class PanelizeOptions(VariantOptions): # Add the PCB and output cmd.append(fname) cmd.append(output) + remove_tmps = False try: run_command(cmd) self.create_preview_file(output) + remove_tmps = True finally: - if GS.debug_enabled: + if GS.debug_enabled and not remove_tmps: if self._files_to_remove: logger.error('Keeping temporal files: '+str(self._files_to_remove)) else: