From ddbc57d2644eb8b6860e2a2297700805fc37e537 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Thu, 23 Apr 2020 11:12:31 +0200 Subject: [PATCH] fix(ppro): returning data from publish not correct --- pype/premiere/ppro/js/pype.js | 5 ++++- pype/services/adobe_communicator/lib/rest_api.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pype/premiere/ppro/js/pype.js b/pype/premiere/ppro/js/pype.js index 77ccffe8b9..0eb0ca62ae 100644 --- a/pype/premiere/ppro/js/pype.js +++ b/pype/premiere/ppro/js/pype.js @@ -148,7 +148,7 @@ class Pype { self.publishUI.jsonSendPath = self.stagingDir + "\\publishSend.json"; }; if (self.publishUI.jsonGetPath == "") { - self.publishUI.jsonGetPath = self.stagingDir + "\\publishGet.json"; + self.publishUI.jsonGetPath = self.stagingDir + "_publishGet.json"; } jsonfile.writeFile(self.publishUI.jsonSendPath, jsonContent); resolve(result); @@ -201,6 +201,9 @@ class Pype { }, error => { console.error(`failed to publish: ${error}`); }); + // here jsonSetPath and jsonGetPath are set to gui + this.uiJsonSendPath.value = ""; + this.uiJsonGetPath.value = ""; console.log("waiting for result"); }); } else { diff --git a/pype/services/adobe_communicator/lib/rest_api.py b/pype/services/adobe_communicator/lib/rest_api.py index 378c693120..2372c4ed20 100644 --- a/pype/services/adobe_communicator/lib/rest_api.py +++ b/pype/services/adobe_communicator/lib/rest_api.py @@ -70,7 +70,7 @@ class AdobeRestApi(RestApi): log.info("Pyblish have stopped") return CallbackResult( - {"return_data_path": output_data_path} + data={"return_data_path": output_data_path} ) except Exception: