From dd27953068efe35579ae77fb3401e539ffaef041 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Thu, 18 Nov 2021 10:51:02 +0100 Subject: [PATCH] reverse commit: removing representation after all presets are used --- openpype/plugins/publish/extract_burnin.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/openpype/plugins/publish/extract_burnin.py b/openpype/plugins/publish/extract_burnin.py index b1ba4ddeac..961c7f50d1 100644 --- a/openpype/plugins/publish/extract_burnin.py +++ b/openpype/plugins/publish/extract_burnin.py @@ -307,16 +307,16 @@ class ExtractBurnin(openpype.api.Extractor): # NOTE we maybe can keep source representation if necessary instance.data["representations"].remove(repre) - self.log.debug("Files to delete: {}".format(files_to_delete)) + self.log.debug("Files to delete: {}".format(files_to_delete)) - # Delete input files - for filepath in files_to_delete: - if os.path.exists(filepath): - os.remove(filepath) - self.log.debug("Removed: \"{}\"".format(filepath)) + # Delete input files + for filepath in files_to_delete: + if os.path.exists(filepath): + os.remove(filepath) + self.log.debug("Removed: \"{}\"".format(filepath)) - if do_decompress and os.path.exists(decompressed_dir): - shutil.rmtree(decompressed_dir) + if do_decompress and os.path.exists(decompressed_dir): + shutil.rmtree(decompressed_dir) def _get_burnin_options(self): # Prepare burnin options