mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
host name in 'remotepublish command is always "webpublisher"
This commit is contained in:
parent
c9a0789b73
commit
69bf8071ba
1 changed files with 3 additions and 7 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue