Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SimpleEmbedded {
- public static void main(String []args){
- PythonInterpreter interp = new PythonInterpreter();
- System.out.println("Hello, world from Java");
- interp.execfile("text_rec.py");
- System.out.println("Goodbye ");
- }
- }
- interp = new PythonInterpreter(null, new PySystemState());
- PySystemState sys = Py.getSystemState();
- sys.path.append(new PyString(rootPath));
- sys.path.append(new PyString(modulesDir));
Add Comment
Please, Sign In to add comment