org.python.core
public class PySystemState extends PyObject
Field Summary | |
---|---|
PyList | argv
The arguments passed to this program on the command line. |
static PyObject | builtins |
static String[] | builtin_module_names |
static String | byteorder |
static File | cachedir |
static String | copyright
The copyright notice for this release. |
PyObject | executable |
static String | exec_prefix |
static int | hexversion |
static String | JYTHON_JAR |
PyObject | last_traceback |
PyObject | last_type |
PyObject | last_value |
static int | maxint |
static int | maxunicode |
PyList | meta_path |
static int | minint |
PyObject | modules |
static PackageManager | packageManager |
PyList | path |
PyList | path_hooks |
PyObject | path_importer_cache |
static String | platform |
static String | prefix |
TraceFunction | profilefunc |
PyObject | ps1 |
PyObject | ps2 |
static Properties | registry |
PyObject | stderr |
PyObject | stdin |
PyObject | stdout |
TraceFunction | tracefunc |
static String | version
The current version of Jython.
|
static PyTuple | version_info |
static PyList | warnoptions |
PyObject | __dict__ |
PyObject | __displayhook__ |
PyObject | __excepthook__ |
PyObject | __stderr__ |
PyObject | __stdin__ |
PyObject | __stdout__ |
Constructor Summary | |
---|---|
PySystemState() |
Method Summary | |
---|---|
static void | add_classdir(String directoryPath)
Add a classpath directory to the list of places that are searched
for java packages.
|
static void | add_extdir(String directoryPath)
Add a .jar & .zip directory to the list of places that are searched
for java .jar and .zip files. |
static void | add_extdir(String directoryPath, boolean cache)
Add a .jar & .zip directory to the list of places that are searched
for java .jar and .zip files.
|
static PyJavaPackage | add_package(String n) |
static PyJavaPackage | add_package(String n, String contents) |
void | callExitFunc() |
static void | determinePlatform(Properties props) |
static PyTuple | exc_info() |
static void | exit(PyObject status)
Exit a Python program with the given status.
|
static void | exit()
Exit a Python program with the status 0. |
static Properties | getBaseProperties() |
ClassLoader | getClassLoader() |
String | getdefaultencoding() |
int | getrecursionlimit() |
static void | initialize() |
static void | initialize(Properties preProperties, Properties postProperties, String[] argv) |
static void | initialize(Properties preProperties, Properties postProperties, String[] argv, ClassLoader classLoader) |
static void | initialize(Properties preProperties, Properties postProperties, String[] argv, ClassLoader classLoader, ExtensiblePyObjectAdapter adapter) |
static boolean | isPackageCacheEnabled() |
String | safeRepr() |
void | setClassLoader(ClassLoader classLoader) |
void | setdefaultencoding(String encoding) |
void | setprofile(PyObject profilefunc) |
void | setrecursionlimit(int recursionlimit) |
void | settrace(PyObject tracefunc) |
String | toString() |
static PyFrame | _getframe() |
static PyFrame | _getframe(int depth) |
void | __delattr__(String name) |
PyObject | __findattr__(String name) |
void | __rawdir__(PyDictionary accum) |
void | __setattr__(String name, PyObject value) |
Usually updated by hand.
Replaced by ant when doing a snapshot build.
This also applies for the PY_*
integer values below
Note. Classes found in directory and subdirectory are not
made available to jython by this call. It only makes the java
package found in the directory available. This call is mostly
usefull if jython is embedded in an application that deals with
its own classloaders. A servlet container is a very good example.
Calling add_classdir("
Note. Classes in .jar and .zip files found in the directory are not made available to jython by this call. See the note for add_classdir(dir) for more details.
Parameters: directoryPath The name of a directory.
See Also: PySystemState
Note. Classes in .jar and .zip files found in the directory are not made available to jython by this call. See the note for add_classdir(dir) for more details.
Parameters: directoryPath The name of a directory. cache Controls if the packages in the zip and jar file should be cached.
See Also: PySystemState
Parameters: status the value to exit with
Throws: Py.SystemExit always throws this exception. When caught at top level the program will exit.