Gilles Filippini a écrit le 20/03/2017 à 21:58 : > Hi, > > On Thu, 16 Mar 2017 12:25:46 +0100 Ole Streicher <oleb...@debian.org> wrote: >> Package: jython >> Version: 2.5.3-15 >> Severity: normal >> >> when I use jython to import from a jar as a user, I get the following >> messages: >> >>>>> import sys >>>>> sys.path.append('/usr/share/java/adql.jar') >>>>> import adql >> *sys-package-mgr*: processing new jar, '/usr/share/java/adql-1.3.jar' >> *sys-package-mgr*: can't write cache file for '/usr/share/java/adql-1.3.jar' >> *sys-package-mgr*: can't write index file >> >> since the cache dir is not writeable for the ordinary user. >> Maybe this should have been set to the user's home dir if started by a user? > > Doh! This was supposed to be fixed by release 2.5.3-12. Big fail /o\ > My mistake was to change CACHEDIR_DEFAULT_NAME only. > > The problem is that when the cachedir path is not absolute, it is > considered relative to the installation prefix: /usr/share/jython. > > How about considering it relative to - say - $HOME/.jython instead?
Actually $HOME/.jython is the user's registry file. I'll then go for ".jython-cache" as default cachedir, relative to $HOME. Thanks, _g.
signature.asc
Description: OpenPGP digital signature