Skip to content

Commit

Permalink
Update property name for python evaluator
Browse files Browse the repository at this point in the history
  • Loading branch information
GIlca committed Dec 5, 2022
1 parent 15edfe7 commit 98cea6c
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,15 @@ private Value doEvaluateExpressionExternalPython(String expr,
public Value testExpr(String expr, Map<String, Value> context, Set<SystemProperty> systemProperties,
Set<ScriptFunction> functionDependencies, long timeoutPeriod) {
try {
if (EXTERNAL_PYTHON) {
return doTestExternalPython(expr, context, systemProperties, functionDependencies, timeoutPeriod);

} else {
return doTestJython(expr, context, systemProperties, functionDependencies, timeoutPeriod);
switch (PYTHON_EVALUATOR) {
//TODO add method for python server once the server is implemented; also copy for the default method
case PYTHON_SERVER:
case PYTHON:
return doTestExternalPython(expr, context, systemProperties, functionDependencies, timeoutPeriod);
case JYTHON:
return doTestJython(expr, context, systemProperties, functionDependencies, timeoutPeriod);
default:
return doTestExternalPython(expr, context, systemProperties, functionDependencies, timeoutPeriod);
}
} catch (Exception exception) {
throw new RuntimeException("Error in evaluating expression: '" +
Expand Down

0 comments on commit 98cea6c

Please sign in to comment.