Jython libraries should now be properly imported on Windows as well.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@551 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-04-26 17:57:52 +00:00
parent 02536a625e
commit fece6187bf

View File

@ -19,16 +19,13 @@ public class JythonEvaluable implements Evaluable {
private static PythonInterpreter _engine;
static {
String os = System.getProperty("os.name").toLowerCase();
if (os.contains("mac os x")) {
File libPath = new File("lib/jython");
if (libPath.getAbsolutePath().contains("/Gridworks.app/Contents/Resources/")) {
if (libPath.exists()) {
Properties props = new Properties();
props.setProperty("python.path", libPath.getAbsolutePath());
PythonInterpreter.initialize(System.getProperties(),props, new String[] { "" });
}
}
_engine = new PythonInterpreter();
}