From 2985925aa076ffa5f003c895be97a56b552059d6 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 29 Jan 2021 15:57:19 +0100 Subject: [PATCH] standalone publisher tool is using pype execute arguments when trigerring pyblish --- pype/tools/standalonepublish/widgets/widget_components.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pype/tools/standalonepublish/widgets/widget_components.py b/pype/tools/standalonepublish/widgets/widget_components.py index 7e0327f00a..1ba282ab83 100644 --- a/pype/tools/standalonepublish/widgets/widget_components.py +++ b/pype/tools/standalonepublish/widgets/widget_components.py @@ -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 )