public void setErr(PyObject outStream) { systemState.stderr = outStream; }
/** * Initializes the jython runtime. This should only be called once, and should be called before * any other python objects are created (including a PythonInterpreter). * * @param preProperties A set of properties. Typically System.getProperties() is used. * @param postProperties An other set of properties. Values like python.home, python.path and all * other values from the registry files can be added to this property set. PostProperties will * override system properties and registry properties. * @param argv Command line argument. These values will assigned to sys.argv. */ public static void initialize( Properties preProperties, Properties postProperties, String[] argv) { PySystemState.initialize(preProperties, postProperties, argv); }
/** * Set the Python object to use for the standard output stream * * @param outStream Python file-like object to use as output stream */ public void setOut(PyObject outStream) { systemState.stdout = outStream; }
public void cleanup() { systemState.callExitFunc(); }