Added radials which are handled by python scripts, updated engine, objects now load serverside template at creation

This commit is contained in:
Light2
2013-07-08 23:38:41 +02:00
parent 3afd5eca3a
commit e457b9711c
18 changed files with 828 additions and 11 deletions
+8
View File
@@ -77,6 +77,14 @@ public class ScriptService {
func.__call__(Py.java2py(arg1), Py.java2py(arg2), Py.java2py(arg3), Py.java2py(arg4));
interpreter.cleanup();
}
public PyObject getMethod(String path, String module, String method) {
PythonInterpreter interpreter = new PythonInterpreter();
interpreter.exec("import sys\nsys.path.append('" + path + "')\nfrom " + module + " import " + method);
PyObject func = interpreter.get(method);
interpreter.cleanup();
return func;
}
}