Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
jython
jython-cachedir.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jython-cachedir.patch of Package jython
--- jython-20030113/org/python/core/PySystemState.java~ 2003-01-14 16:44:44.000000000 -0500 +++ jython-20030113/org/python/core/PySystemState.java 2003-01-14 16:47:55.000000000 -0500 @@ -459,7 +459,13 @@ } cachedir = new File(props.getProperty("python.cachedir", "cachedir")); if (!cachedir.isAbsolute()) { - cachedir = new File(PySystemState.prefix, cachedir.getPath()); + File jythondir = new File(System.getProperty("user.home"), ".jython"); + + if (!jythondir.isDirectory()) { + jythondir.mkdirs(); + } + + cachedir = new File(jythondir, cachedir.getPath()); } } --- jython/org/python/core/PySystemState.java~ 2004-02-16 17:27:22.000000000 -0500 +++ jython/org/python/core/PySystemState.java 2004-02-16 17:29:05.000000000 -0500 @@ -311,8 +311,8 @@ } try { addRegistryFile(new File(prefix, "registry")); - File homeFile = new File(registry.getProperty("user.home"), - ".jython"); + File homeFile = new File(new File(registry.getProperty("user.home"), + ".jython"), "registry"); addRegistryFile(homeFile); } catch (Exception exc) { ;
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