Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Webpublisher - fixed host install
Browse files Browse the repository at this point in the history
  • Loading branch information
kalisp committed Aug 25, 2021
1 parent 1387b75 commit 3dfe351
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions openpype/hosts/webpublisher/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# to have required methods for interface
def ls():
pass
1 change: 0 additions & 1 deletion openpype/hosts/webpublisher/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
9 changes: 5 additions & 4 deletions openpype/pype_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ...")

Expand Down

0 comments on commit 3dfe351

Please sign in to comment.