You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/jython/files/jython-2.5.2-respect_PYTHON...

16 lines
551 B

--- a/src/org/python/core/PySystemState.java
+++ b/src/org/python/core/PySystemState.java
@@ -646,6 +646,12 @@
if (jythonpath != null) {
registry.setProperty("python.path", jythonpath);
}
+ else {
+ jythonpath = System.getenv("PYTHONPATH");
+ if (jythonpath != null) {
+ registry.setProperty("python.path", jythonpath);
+ }
+ }
} catch (SecurityException e) {
}
registry.putAll(postProperties);