[Libreoffice] Python on Windows

Dag Wieers dag at wieers.com
Fri Oct 21 05:17:11 PDT 2011


On Thu, 20 Oct 2011, Stephan Bergmann wrote:

> (c) pyuno as run from an external python process might no longer work. An 
> easy way to test that is to start the interactive python executable from the 
> LibO program directory and execute "include uno" (and/or "include pyuno"; not 
> sure right now which one is the more interesting, but if both work I'd guess 
> that's good).

The solution we implemented for this for unoconv (a python tool) is to try 
to load the pyuno.so with the system's python, on failure it looks for an 
existing LibO python and swaps itself in memory with the LibO python and 
tries again. That works quite well in practice.

-- 
-- dag wieers, dag at wieers.com, http://dag.wieers.com/
-- dagit linux solutions, info at dagit.net, http://dagit.net/

[Any errors in spelling, tact or fact are transmission errors]


More information about the LibreOffice mailing list