| 1 |
# Python Registry -*- sh -*- |
| 2 |
# This default registry sets many common options to their default values |
| 3 |
# All of these settings could be erased with no change in behavior |
| 4 |
# |
| 5 |
# Definitive descriptions of supported keys and values is in the javadoc |
| 6 |
# for org.python.core.RegistryKey |
| 7 |
# |
| 8 |
|
| 9 |
# This is how Jim sets his path on his Windows development machine |
| 10 |
#python.path=.;c:\\Jython\\Lib;d:\\Python-1.5.2\\Lib |
| 11 |
# This is how Barry sets his path on his Unix development machine |
| 12 |
#python.path = /home/bwarsaw/projects/python/Lib |
| 13 |
# This is how Finn sets his path on his windows development machine |
| 14 |
#python.path = d:\\python20\\lib |
| 15 |
|
| 16 |
# Set the directory to use for caches (currently just package information) |
| 17 |
# This directory should be writable by the user. If this is an absolute path it is used as given, |
| 18 |
# otherwise it is interpreted relative to the current working directory (at initialisation). |
| 19 |
#python.cachedir = .jython_cache |
| 20 |
|
| 21 |
# Setting this property to true disables the package scan for the cachedir. |
| 22 |
# Please be aware that disabling this will break importing * from java packages |
| 23 |
#python.cachedir.skip = false |
| 24 |
|
| 25 |
# Properties to check for initializing and updating the package cache |
| 26 |
# Values shown here are those hard-coded in Jython's cache manager. |
| 27 |
|
| 28 |
# Treat JARs on the classpath and (up to Java 8) in the JRE as a source of Python packages. |
| 29 |
#python.packages.paths = java.class.path, sun.boot.class.path # up to Java 8 |
| 30 |
#python.packages.paths = java.class.path # from Java 9 |
| 31 |
# Treat installed optional (Java) packages as source of Python packages (before Java 9) |
| 32 |
#python.packages.directories = java.ext.dirs # up to Java 8 |
| 33 |
#python.packages.directories # undefined from Java 9 |
| 34 |
|
| 35 |
|
| 36 |
# DEPRECATED way to set the verbosity of messages output by Jython. If |
| 37 |
# specified, "python.verbose" will set logging level for "org.python" when |
| 38 |
# the runtime is initialised. It is better to use java.util.logging |
| 39 |
# preferences (and the -v option) which work from the start of execution. |
| 40 |
#python.verbose = message |
| 41 |
|
| 42 |
# Jython ships with a JLine console (http://jline.sourceforge.net/) out of the |
| 43 |
# box. This is selected by default in the Jython command-line application |
| 44 |
# (org.python.util.jython) if you do not define python.console to be another |
| 45 |
# class on the command line. Alternatively, you could set python.console here, |
| 46 |
# but be aware that this will also affect the console in applications that |
| 47 |
# embed a PythonInterpreter, or use Jython as a JSR-223 script engine. |
| 48 |
#python.console=org.python.util.JLineConsole |
| 49 |
# To activate the featureless Jython console explicitly, choose: |
| 50 |
#python.console=org.python.core.PlainConsole |
| 51 |
# You may also set this to the name of a different console class in |
| 52 |
# your classpath that extends PlainConsole. Note that |
| 53 |
# org.python.util.ReadlineConsole has been removed in 2.7. |
| 54 |
|
| 55 |
# Setting this to a valid (Java) codec name will cause the console to use a |
| 56 |
# different encoding when reading commands from the console. |
| 57 |
#python.console.encoding = cp850 |
| 58 |
|
| 59 |
# Setting this to false will allow Jython to provide access to |
| 60 |
# non-public fields, methods, and constructors of Java objects. |
| 61 |
python.security.respectJavaAccessibility = true |
| 62 |
|
| 63 |
# Setting this to true will force Jython will use the first module |
| 64 |
# found on sys.path where java File.isFile() returns true. |
| 65 |
# Setting this to true has no effect on unix-type filesystems. |
| 66 |
# On Windows/HPS+ systems, setting it to true will enable Jython-2.0 |
| 67 |
# behaviour. |
| 68 |
python.options.caseok = false |
| 69 |
|
| 70 |
# Setting this non-empty will drop the interpreter into an interactive session at the end of |
| 71 |
# execution, like adding the -i flag (roughly) or setting the environment variable PYTHONINSPECT |
| 72 |
# during execution. |
| 73 |
#python.inspect = true |
| 74 |
|
| 75 |
# Setting this to a file name will cause that file to be run at the start of each interactive |
| 76 |
# session (but not when dropping in with the -i flag in after a script has run). |
| 77 |
#python.startup = jython-startup.py |
| 78 |
|
| 79 |
# Use this registry entry to control the list of builtin modules; you |
| 80 |
# can add, remove, or override builtin modules. The value for this |
| 81 |
# registry key is a comma separated list of module entries, each entry |
| 82 |
# of which has the following allowable forms: |
| 83 |
# |
| 84 |
# name |
| 85 |
# The module name is `name' and the class name is |
| 86 |
# org.python.modules.name |
| 87 |
# |
| 88 |
# name:class |
| 89 |
# The module name is `name' and the class name is `class' where |
| 90 |
# class must be a fully qualified Java class name |
| 91 |
# |
| 92 |
# name:null |
| 93 |
# The module `name' is removed from the list of builtin modules |
| 94 |
# |
| 95 |
# A good example would be to use a jni version of os for more |
| 96 |
# functionality by having an entry such as os:com.foo.jni.os |
| 97 |
#python.modules.builtin = whatever |
| 98 |
|
| 99 |
# This registry entry controls the behaviour of the SRE_STATE code point cache. |
| 100 |
# For the complete set of values that can be set here see: |
| 101 |
# http://docs.guava-libraries.googlecode.com/git-history/release/javadoc/com/google/common/cache/CacheBuilderSpec.html |
| 102 |
# Typically you will want to set weakKeys so as to perform object identity |
| 103 |
# comparisons rather than using equals(). Using weakKeys also enables entries |
| 104 |
# to be removed when the underlying key is garbage collected. |
| 105 |
# |
| 106 |
# Values that could be useful to tweak are: |
| 107 |
# - concurrencyLevel: this is a hint to the cache as to the level of partitioning to |
| 108 |
# use for the intenal map and affects the number of concurrent *write* operations |
| 109 |
# - expireAfterAccess: constrains the size of the cache and the order |
| 110 |
# in which cache entries are evicted. The current value is chosen somewhat |
| 111 |
# arbitrarily so tweak as required. |
| 112 |
# - maximumWeight: weighting is based on the length of the int[] returned from |
| 113 |
# PyString.toCodePoints(). As such this setting contrains the amount of memory |
| 114 |
# that the cache will consume. The current value is 10MB. |
| 115 |
#python.sre.cachespec = weakKeys,concurrencyLevel=4,maximumWeight=2621440,expireAfterAccess=30s |