Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Java:packages:attic
jython
jython-cachedir.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jython-cachedir.patch of Package jython
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); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor