01: // Copyright (c) Corporation for National Research Initiatives
02: package org.python.modules;
03:
04: // This is sort of analogous to CPython's Modules/Setup file. Use this to
05: // specify additional builtin modules.
06:
07: public class Setup {
08: // Each element of this array is a string naming a builtin module to
09: // add to the system. The string has the following allowable forms:
10: //
11: // name
12: // The module name is `name' and the class name is
13: // org.python.modules.name
14: //
15: // name:class
16: // The module name is `name' and the class name is `class' where
17: // class must be a fully qualified Java class name
18: //
19: // name:null
20: // The module `name' is removed from the list of builtin modules
21: //
22: // That isn't very useful here, but you can add additional builtin
23: // modules by editing the JPython registry file. See the property
24: // python.modules.builtin for details.
25:
26: public static String[] builtinModules = { "jarray", "math",
27: "thread", "operator", "time:org.python.modules.time.Time",
28: "os", "types", "py_compile", "pre:org.python.modules.re",
29: "_sre", "synchronize", "cPickle", "cStringIO", "struct",
30: "binascii", "md5:org.python.modules.MD5Module",
31: "exceptions:org.python.core.exceptions", "_codecs", "imp",
32: "sha", "ucnhash", "_jython",
33: "new:org.python.modules.newmodule", "_weakref",
34: "xreadlines", "errno",
35: "array:org.python.modules.ArrayModule",
36: "sets:org.python.modules.sets.Sets" };
37: }
|