Update of /cvsroot/jython/jython/org/python/util
In directory usw-pr-cvs1:/tmp/cvs-serv17173
Modified Files:
PythonInterpreter.java
Log Message:
Added an initialize() convinience method.
Index: PythonInterpreter.java
===================================================================
RCS file: /cvsroot/jython/jython/org/python/util/PythonInterpreter.java,v
retrieving revision 2.5
retrieving revision 2.6
diff -C2 -r2.5 -r2.6
*** PythonInterpreter.java 2000/12/11 18:56:34 2.5
--- PythonInterpreter.java 2001/01/15 18:27:38 2.6
***************
*** 2,5 ****
--- 2,6 ----
package org.python.util;
import org.python.core.*;
+ import java.util.*;
/**
***************
*** 16,20 ****
PyObject locals;
! // Initialize from a possibly precompiled Python module
/**
--- 17,41 ----
PyObject locals;
! /**
! * Initialize the jython runtime. This method should only be
! * called once, and should be call before any other python objects
! * are created (included 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);
! }
/**
|