blob: e695122ba1d6c4996e6de08dbe27b6091501167a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- 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);
|