From 690e6950c36be959174d7c7656ba0f13da62db7a Mon Sep 17 00:00:00 2001 From: GIlca Date: Tue, 22 Aug 2023 16:47:59 +0300 Subject: [PATCH] do not build envSetup for pythonExecutor --- .../lang/runtime/bindings/scripts/ScriptEvaluator.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cloudslang-runtime/src/main/java/io/cloudslang/lang/runtime/bindings/scripts/ScriptEvaluator.java b/cloudslang-runtime/src/main/java/io/cloudslang/lang/runtime/bindings/scripts/ScriptEvaluator.java index 1764cf5b5..bd907933f 100644 --- a/cloudslang-runtime/src/main/java/io/cloudslang/lang/runtime/bindings/scripts/ScriptEvaluator.java +++ b/cloudslang-runtime/src/main/java/io/cloudslang/lang/runtime/bindings/scripts/ScriptEvaluator.java @@ -154,8 +154,7 @@ private Value doEvaluateExpressionPythonExecutor(String expr, PythonEvaluationResult result; if (pythonExecutorLifecycleManagerService.isAlive()) { try { - result = pythonExecutorService.eval( - buildAddFunctionsScriptForExternalPython(functionDependencies), expr, pythonContext); + result = pythonExecutorService.eval(null, expr, pythonContext); } catch (ExternalPythonScriptException exception) { if (logger.isDebugEnabled()) { logger.warn("Could not evaluate expressions on python executor, retrying with python");