Skip to content

Commit

Permalink
Merge pull request #1398 from CloudSlang/replace_prop_name
Browse files Browse the repository at this point in the history
Replace python-server with python-executor
  • Loading branch information
QueueUpX authored Jan 9, 2023
2 parents 703d871 + 3cbec44 commit 8e938e2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import java.util.stream.Collectors;
import java.util.stream.Stream;

import static io.cloudslang.runtime.api.python.enums.PythonStrategy.PYTHON_SERVER;
import static io.cloudslang.runtime.api.python.enums.PythonStrategy.PYTHON_EXECUTOR;
import static io.cloudslang.runtime.api.python.enums.PythonStrategy.getPythonStrategy;

/**
Expand All @@ -50,7 +50,7 @@ public class ScriptEvaluator extends ScriptProcessor {
private static final String BACKWARD_COMPATIBLE_ACCESS_METHOD = "def accessed(key):" +
LINE_SEPARATOR + " pass";
private static final PythonStrategy PYTHON_EVALUATOR =
getPythonStrategy(System.getProperty("python.expressionsEval"), PYTHON_SERVER);
getPythonStrategy(System.getProperty("python.expressionsEval"), PYTHON_EXECUTOR);
public static final int MAX_LENGTH = Integer.getInteger("input.error.max.length", 1000);

@Resource(name = "externalPythonRuntimeService")
Expand All @@ -68,7 +68,7 @@ public Value evalExpr(String expr, Map<String, Value> context, Set<SystemPropert
switch (PYTHON_EVALUATOR) {
case JYTHON:
return doEvaluateExpressionJython(expr, context, systemProperties, functionDependencies);
//case PYTHON_SERVER or PYTHON
//case PYTHON_EXECUTOR or PYTHON
default:
return doEvaluateExpressionExternalPython(expr, context, systemProperties, functionDependencies);
}
Expand Down

0 comments on commit 8e938e2

Please sign in to comment.