python-utils-r1.eclass: Fix python_optimize to take all of sys.path
authorMichał Górny <mgorny@gentoo.org>
Wed, 23 Oct 2019 10:08:27 +0000 (12:08 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 1 Nov 2019 13:15:58 +0000 (14:15 +0100)
commit3a8167567e4f7f938da9c34ca0a02ea2eac8de65
treec358c90975cb32d436a9ca6e4d1240bbe3ccc2a6
parentc39be67c868091880f1ddbe4ae40b6ee03fef8b8
python-utils-r1.eclass: Fix python_optimize to take all of sys.path

Make sure to append NUL to every path in sys.path, rather than using
it as a separator between output entries.  This fixes a bug when
the last path entry was silently discarded, and the function stopped
working with PyPy as a result.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/python-utils-r1.eclass