summaryrefslogtreecommitdiff
blob: 8d028d01b5674b9b7055e500309690248372d13e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- src/org/python/core/PySystemState.java
+++ 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);