From 40834c42922d540fd5b3cb31ea9118022326fbf1 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 12 Feb 2021 15:44:02 +0100 Subject: [PATCH] fix collect context variable names --- .../standalonepublisher/publish/collect_context.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pype/plugins/standalonepublisher/publish/collect_context.py b/pype/plugins/standalonepublisher/publish/collect_context.py index cd7246c0a2..b40c081fcc 100644 --- a/pype/plugins/standalonepublisher/publish/collect_context.py +++ b/pype/plugins/standalonepublisher/publish/collect_context.py @@ -89,15 +89,15 @@ class CollectContextDataSAPublish(pyblish.api.ContextPlugin): files = [files] self.log.debug(f"_ files: {files}") - for index, f in enumerate(files): + for index, _file in enumerate(files): index += 1 # copy dictionaries in_data_copy = copy.deepcopy(in_data_copy) - repr_new = copy.deepcopy(repr) + new_repre = copy.deepcopy(repre) - repr_new["files"] = f - repr_new["name"] = ext - in_data_copy["representations"] = [repr_new] + new_repre["files"] = _file + new_repre["name"] = ext + in_data_copy["representations"] = [new_repre] # create subset Name new_subset = f"{ext}{index}{subset}"