From 12e95ef32c883f44f0b1136e3023065a97b469dc Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Mon, 24 Feb 2020 17:24:40 +0100 Subject: [PATCH] publihsed_path moved back due to integrity errors connected with removing --- pype/plugins/global/publish/integrate_new.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pype/plugins/global/publish/integrate_new.py b/pype/plugins/global/publish/integrate_new.py index 779a498451..f8cde10aed 100644 --- a/pype/plugins/global/publish/integrate_new.py +++ b/pype/plugins/global/publish/integrate_new.py @@ -373,6 +373,13 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin): if not dst_start_frame: dst_start_frame = dst_padding + dst = "{0}{1}{2}".format( + dst_head, + dst_start_frame, + dst_tail + ).replace("..", ".") + repre['published_path'] = self.unc_convert(dst) + else: # Single file # _______ @@ -402,7 +409,7 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin): instance.data["transfers"].append([src, dst]) published_files.append(dst) - + repre['published_path'] = self.unc_convert(dst) self.log.debug("__ dst: {}".format(dst)) repre["publishedFiles"] = published_files @@ -473,9 +480,7 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin): self.log.debug("__ representations: {}".format(representations)) for rep in instance.data["representations"]: self.log.debug("__ represNAME: {}".format(rep['name'])) - self.log.debug("__ represPATH:\n{}".format( - ",\n".join(rep['publishedFiles']) - )) + self.log.debug("__ represPATH: {}".format(rep['published_path'])) io.insert_many(representations) instance.data["published_representations"] = ( published_representations