Using OOoPython from an external script

Miklos Vajna vmiklos at
Fri Apr 6 00:32:37 PDT 2012

On Fri, Apr 06, 2012 at 09:05:29AM +1200, Glenn Ramsey <glenn.ramsey at> wrote:
> with OOoPython on the command line (in OSX 10.6) I discovered that the
> PYTHONPATH needs to be set up properly before uno can be successfully
> imported.
> Is there a way to automatically set this up, or do I have to write
> something in my script to discover and configure the path? I would like
> this to work on Linux, Windows and OSX.

I just checked the Linux RPM's, there program/python file is a shell
script setting up PYTHONPATH and friends, then the real python binary is
called python.bin. Maybe you missed this. :)

More information about the LibreOffice mailing list