From a0434e3704860ca46a4e9792686c7d8b7e91847d Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Wed, 22 Apr 2020 18:02:35 +0200 Subject: [PATCH] added sys.executable to execute --- pype/services/adobe_communicator/lib/rest_api.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pype/services/adobe_communicator/lib/rest_api.py b/pype/services/adobe_communicator/lib/rest_api.py index d6562f1b12..bc092c51de 100644 --- a/pype/services/adobe_communicator/lib/rest_api.py +++ b/pype/services/adobe_communicator/lib/rest_api.py @@ -1,4 +1,5 @@ import os +import sys import copy from pype.services.rest_api import RestApi, route, abort, CallbackResult from .io_nonsingleton import DbConnector @@ -57,7 +58,10 @@ class AdobeRestApi(RestApi): try: # Trigger subprocess # QUESTION should we check returncode? - returncode = execute(PUBLISH_SCRIPT_PATH, env=publish_env) + returncode = execute( + [sys.executable, PUBLISH_SCRIPT_PATH], + env=publish_env + ) # Check if output file exists if returncode != 0 or not os.path.exists(output_data_path):