From 69bf8071ba175c71a9b307d1377413698bcfa7d1 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Tue, 9 Nov 2021 16:03:42 +0100 Subject: [PATCH] host name in 'remotepublish command is always "webpublisher" --- openpype/pype_commands.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/openpype/pype_commands.py b/openpype/pype_commands.py index 8225452082..92076402c5 100644 --- a/openpype/pype_commands.py +++ b/openpype/pype_commands.py @@ -241,8 +241,6 @@ class PypeCommands: if not batch_path: raise RuntimeError("No publish paths specified") - from openpype import install, uninstall - # Register target and host import pyblish.api import pyblish.util @@ -251,10 +249,10 @@ class PypeCommands: log.info("remotepublish command") - install() + host_name = "webpublisher" + os.environ["AVALON_APP"] = host_name - if host: - pyblish.api.register_host(host) + pyblish.api.register_host(host_name) if targets: if isinstance(targets, str): @@ -264,7 +262,6 @@ class PypeCommands: os.environ["OPENPYPE_PUBLISH_DATA"] = batch_path os.environ["AVALON_PROJECT"] = project - os.environ["AVALON_APP"] = host import avalon.api from openpype.hosts.webpublisher import api as webpublisher @@ -280,7 +277,6 @@ class PypeCommands: publish_and_log(dbcon, _id, log) log.info("Publish finished.") - uninstall() @staticmethod def extractenvironments(output_json_path, project, asset, task, app):