diff --git a/openpype/hosts/webpublisher/__init__.py b/openpype/hosts/webpublisher/__init__.py index e69de29bb2d..d47bab580bd 100644 --- a/openpype/hosts/webpublisher/__init__.py +++ b/openpype/hosts/webpublisher/__init__.py @@ -0,0 +1,3 @@ +# to have required methods for interface +def ls(): + pass \ No newline at end of file diff --git a/openpype/hosts/webpublisher/api/__init__.py b/openpype/hosts/webpublisher/api/__init__.py index 1bf1ef1a6f1..76709bb2d74 100644 --- a/openpype/hosts/webpublisher/api/__init__.py +++ b/openpype/hosts/webpublisher/api/__init__.py @@ -29,7 +29,6 @@ def install(): log.info(PUBLISH_PATH) io.install() - avalon.Session["AVALON_APP"] = "webpublisher" # because of Ftrack collect avalon.on("application.launched", application_launch) diff --git a/openpype/pype_commands.py b/openpype/pype_commands.py index 7774a010a6e..656f8642297 100644 --- a/openpype/pype_commands.py +++ b/openpype/pype_commands.py @@ -157,11 +157,12 @@ def remotepublish(project, batch_path, host, user, targets=None): os.environ["OPENPYPE_PUBLISH_DATA"] = batch_path os.environ["AVALON_PROJECT"] = project - os.environ["AVALON_APP"] = host # to trigger proper plugings + os.environ["AVALON_APP"] = host - # this should be more generic - from openpype.hosts.webpublisher.api import install as w_install - w_install() + import avalon.api + from openpype.hosts import webpublisher + + avalon.api.install(webpublisher) log.info("Running publish ...")