org.dawb.gda.extensions.jython
Class JythonInterpreterUtils

java.lang.Object
  extended by org.dawb.gda.extensions.jython.JythonInterpreterUtils

public class JythonInterpreterUtils
extends java.lang.Object

SCISOFT - added static method which returns a PythonInterpreter which can run scisoft scripts This is for executing a script directly from the workflow tool when you do not want to start a separate debug/run process to start the script.


Constructor Summary
JythonInterpreterUtils()
           
 
Method Summary
static org.python.util.PythonInterpreter getInterpreter()
          scisoftpy is imported as dnp scisoftpy.core as scp
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JythonInterpreterUtils

public JythonInterpreterUtils()
Method Detail

getInterpreter

public static org.python.util.PythonInterpreter getInterpreter()
                                                        throws java.lang.Exception
scisoftpy is imported as dnp scisoftpy.core as scp

Returns:
a new PythonInterpreter with scisoft scripts loaded.
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.Exception