32 |
static public PaperMill getInstance() { |
static public PaperMill getInstance() { |
33 |
if(instance == null) { |
if(instance == null) { |
34 |
PythonInterpreter jython = new PythonInterpreter(); |
PythonInterpreter jython = new PythonInterpreter(); |
35 |
jython.execfile("gfx/libpaper/papermill.py"); |
jython.exec("from gfx.libpaper.papermill import ThePaperMill\n" + |
36 |
|
"papermillInstance = ThePaperMill()\n"); |
37 |
instance = (PaperMill)(jython.get("papermillInstance", |
instance = (PaperMill)(jython.get("papermillInstance", |
38 |
PaperMill.class)); |
PaperMill.class)); |
39 |
} |
} |