On Tue, 22 Nov 2016 00:03:48 +0100 Gilles Filippini <p...@debian.org> wrote:
> Package: jython
> Version: 2.5.3-11
> Severity: normal
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> Hi,
> 
> /usr/bin/jython should set python.home = '/usr/share/jython', but it uses 
> dirname(dirname($0)) instead, which returns '/usr'.
> 
> This setting comes from #705146, to support virtualenv. But it is incorrect 
> when jython is launched directly: it then fails to found its system-wide 
> registry at ${python.home}/registry.
> 
> A setting compatible with both use cases would be:
> * install the jython launcher into /usr/share/jython/bin
> * make /usr/bin/jython a symlink to /usr/share/jython/bin/jython
> * replace dirname(dirname($0)) with dirname(dirname(abs_path($0)))

I intend to team-upload this change in a few days if you don't object.
Please let me know.

Thanks,

_g.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to