standalone publisher tool is using pype execute arguments when trigerring pyblish

This commit is contained in:
iLLiCiTiT 2021-01-29 15:57:19 +01:00
parent 3f9bc08765
commit 2985925aa0

View file

@ -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
)