This commit is contained in:
parent
9214c6ae80
commit
c50ffbc5d1
@ -1,22 +1,3 @@
|
||||
diff --git a/src/org/python/core/PySystemState.java b/src/org/python/core/PySystemState.java
|
||||
index 1fb701d..ee9b38f 100644
|
||||
--- a/src/org/python/core/PySystemState.java
|
||||
+++ b/src/org/python/core/PySystemState.java
|
||||
@@ -1278,9 +1278,11 @@ public class PySystemState extends PyObject
|
||||
}
|
||||
cachedir = new File(props.getProperty(PYTHON_CACHEDIR, CACHEDIR_DEFAULT_NAME));
|
||||
if (!cachedir.isAbsolute()) {
|
||||
- String prefixString = props.getProperty("user.dir", "");
|
||||
- cachedir = new File(prefixString, cachedir.getPath());
|
||||
- cachedir = cachedir.getAbsoluteFile();
|
||||
+ File jythondir = new File(System.getProperty("user.home"), ".jython-cache");
|
||||
+ if (!jythondir.isDirectory()) {
|
||||
+ jythondir.mkdirs();
|
||||
+ }
|
||||
+ cachedir = new File(jythondir, cachedir.getPath());
|
||||
}
|
||||
logger.log(Level.CONFIG, "cache at {0}", cachedir);
|
||||
}
|
||||
diff --git a/src/org/python/modules/posix/PosixModule.java b/src/org/python/modules/posix/PosixModule.java
|
||||
index e3a8dd9..07d4b43 100644
|
||||
--- a/src/org/python/modules/posix/PosixModule.java
|
||||
|
Loading…
x
Reference in New Issue
Block a user