mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
modify launch arguments
This commit is contained in:
parent
971ae6d1ed
commit
ae11ae16d5
1 changed files with 8 additions and 5 deletions
|
|
@ -14,6 +14,7 @@ from openpype.client import (
|
|||
from openpype.lib import Logger
|
||||
from openpype.settings import get_project_settings
|
||||
from openpype_modules.webserver.base_routes import RestApiEndpoint
|
||||
from openpype_modules.webpublisher import WebpublisherAddon
|
||||
from openpype_modules.webpublisher.lib import (
|
||||
get_webpublish_conn,
|
||||
get_task_data,
|
||||
|
|
@ -213,7 +214,7 @@ class BatchPublishEndpoint(WebpublishApiEndpoint):
|
|||
# TVPaint filter
|
||||
{
|
||||
"extensions": [".tvpp"],
|
||||
"command": "remotepublish",
|
||||
"command": "publish",
|
||||
"arguments": {
|
||||
"targets": ["tvpaint_worker"]
|
||||
},
|
||||
|
|
@ -222,13 +223,13 @@ class BatchPublishEndpoint(WebpublishApiEndpoint):
|
|||
# Photoshop filter
|
||||
{
|
||||
"extensions": [".psd", ".psb"],
|
||||
"command": "remotepublishfromapp",
|
||||
"command": "publishfromapp",
|
||||
"arguments": {
|
||||
# Command 'remotepublishfromapp' requires --host argument
|
||||
# Command 'publishfromapp' requires --host argument
|
||||
"host": "photoshop",
|
||||
# Make sure targets are set to None for cases that default
|
||||
# would change
|
||||
# - targets argument is not used in 'remotepublishfromapp'
|
||||
# - targets argument is not used in 'publishfromapp'
|
||||
"targets": ["remotepublish"]
|
||||
},
|
||||
# does publish need to be handled by a queue, eg. only
|
||||
|
|
@ -240,7 +241,7 @@ class BatchPublishEndpoint(WebpublishApiEndpoint):
|
|||
batch_dir = os.path.join(self.resource.upload_dir, content["batch"])
|
||||
|
||||
# Default command and arguments
|
||||
command = "remotepublish"
|
||||
command = "publish"
|
||||
add_args = {
|
||||
# All commands need 'project' and 'user'
|
||||
"project": content["project_name"],
|
||||
|
|
@ -271,6 +272,8 @@ class BatchPublishEndpoint(WebpublishApiEndpoint):
|
|||
|
||||
args = [
|
||||
openpype_app,
|
||||
"module",
|
||||
WebpublisherAddon.name,
|
||||
command,
|
||||
batch_dir
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue