diff --git a/main/src/com/metaweb/gridworks/expr/JythonEvaluable.java b/main/src/com/metaweb/gridworks/expr/JythonEvaluable.java index 1125409d5..ba2d448c7 100644 --- a/main/src/com/metaweb/gridworks/expr/JythonEvaluable.java +++ b/main/src/com/metaweb/gridworks/expr/JythonEvaluable.java @@ -15,16 +15,17 @@ import org.python.core.PyString; import org.python.util.PythonInterpreter; public class JythonEvaluable implements Evaluable { + private static final String s_functionName = "___temp___"; private static PythonInterpreter _engine; + static { - File libPath = new File("lib/jython"); + File libPath = new File("webapp/WEB-INF/lib/jython"); if (libPath.exists()) { Properties props = new Properties(); props.setProperty("python.path", libPath.getAbsolutePath()); - - PythonInterpreter.initialize(System.getProperties(),props, new String[] { "" }); + PythonInterpreter.initialize(System.getProperties(), props, new String[] { "" }); } _engine = new PythonInterpreter(); }