Conflicts:
	scripts/demo.py
	src/resources/common/Opcodes.java
This commit is contained in:
Treeku
2013-11-05 05:44:12 +00:00
193 changed files with 2943 additions and 30 deletions
+3 -4
View File
@@ -95,10 +95,9 @@ public class ScriptService {
}
public PyObject getMethod(String path, String module, String method) {
PythonInterpreter interpreter = new PythonInterpreter();
interpreter.cleanup();
interpreter.exec("import sys\nsys.path.append('" + path + "')\nfrom " + module + " import " + method);
PyObject func = interpreter.get(method);
PythonInterpreter python = new PythonInterpreter();
python.execfile(path + module + ".py");
PyObject func = python.get(method);
return func;
}