55 |
static public PaperMill getInstance() { |
static public PaperMill getInstance() { |
56 |
if(instance == null) { |
if(instance == null) { |
57 |
PythonInterpreter jython = new PythonInterpreter(); |
PythonInterpreter jython = new PythonInterpreter(); |
58 |
jython.exec("from gfx.libpaper.papermill import ThePaperMill\n" + |
jython.exec("from org.nongnu.libvob.paper.papermill import ThePaperMill\n" + |
59 |
"papermillInstance = ThePaperMill()\n"); |
"papermillInstance = ThePaperMill()\n"); |
60 |
instance = (PaperMill)(jython.get("papermillInstance", |
instance = (PaperMill)(jython.get("papermillInstance", |
61 |
PaperMill.class)); |
PaperMill.class)); |