mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
standalone publisher tool is using pype execute arguments when trigerring pyblish
This commit is contained in:
parent
3f9bc08765
commit
2985925aa0
1 changed files with 7 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ from Qt import QtWidgets, QtCore
|
|||
from . import DropDataFrame
|
||||
from avalon import io
|
||||
from pype.api import execute, Logger
|
||||
from pype.lib import get_pype_execute_args
|
||||
|
||||
log = Logger().get_logger("standalonepublisher")
|
||||
|
||||
|
|
@ -207,8 +208,13 @@ def cli_publish(data, publish_paths, gui=True):
|
|||
if data.get("family", "").lower() == "editorial":
|
||||
envcopy["PYBLISH_SUSPEND_LOGS"] = "1"
|
||||
|
||||
args = [
|
||||
*get_pype_execute_args(),
|
||||
"run",
|
||||
PUBLISH_SCRIPT_PATH
|
||||
]
|
||||
result = execute(
|
||||
[sys.executable, PUBLISH_SCRIPT_PATH],
|
||||
args,
|
||||
env=envcopy
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue