[Libreoffice] [PATCH] Make pyuno work with system python

Caolán McNamara caolanm at redhat.com
Mon Aug 22 03:00:45 PDT 2011


On Mon, 2011-08-22 at 11:36 +0200, Tomáš Chvátal wrote:
> Should apply to master, worth backporting to 3.4.

I've hacked around this with...

echo "import sys, os" > uno.py
echo "sys.path.append('%{basisinstdir}/program')" >> uno.py
echo "os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:
%{baseinstdir}/program/fundamentalrc')" >> uno.py
cat $RPM_BUILD_ROOT/%{basisinstdir}/program/uno.py >> uno.py

in our own spec for a while, so integrating the fix would be good.

However....

a) do we need the PYTHONPATH hack in soffice.sh, I seem to be able to
get away without it ?
b) what about the e.g. windows case ? Will that "do the right thing" wrt
the default substitutions ?

C.



More information about the LibreOffice mailing list