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:
parent
02536a625e
commit
fece6187bf
@ -19,15 +19,12 @@ 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/")) {
|
||||
Properties props = new Properties();
|
||||
props.setProperty("python.path", libPath.getAbsolutePath());
|
||||
File libPath = new File("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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user