<div dir="ltr"><div>Hey,</div><div><br></div><div>you can also have a look at the existing OfficeConnection class from <a href="https://cgit.freedesktop.org/libreoffice/core/tree/uitest/libreoffice/connection.py">https://cgit.freedesktop.org/libreoffice/core/tree/uitest/libreoffice/connection.py</a></div><div><br></div><div>That one should contain quite some logic to handle different corner cases and should warn if the environment is not set-up correctly.</div><div><br></div><div>Markus<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 20, 2019 at 2:59 PM Stephan Bergmann <<a href="mailto:sbergman@redhat.com">sbergman@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 19/06/2019 22:32, Rasmus Jonsson wrote:<br>
> On Wed, 19 Jun 2019 08:07:15 +0200<br>
> Stephan Bergmann <<a href="mailto:sbergman@redhat.com" target="_blank">sbergman@redhat.com</a>> wrote:<br>
> <br>
> This worked, thanks. However, the project requires using whichever<br>
> LibreOffice installation is available.<br>
<br>
For C++ and Java there is helper functionality in the LO SDK for <br>
3rd-party apps to find and access a LO installation, see <br>
<<a href="https://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/C%2B%2B/Transparent_Use_of_Office_UNO_Components" rel="noreferrer" target="_blank">https://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/C%2B%2B/Transparent_Use_of_Office_UNO_Components</a>> <br>
and <br>
<<a href="https://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Java/Transparent_Use_of_Office_UNO_Components" rel="noreferrer" target="_blank">https://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Java/Transparent_Use_of_Office_UNO_Components</a>>, <br>
respectively.  But I don't think something like that has ever been <br>
implemented for Python.<br>
<br>
>> The python interpreter needs to know about LO's UNO files, and a<br>
> <br>
> Which are these UNO files?<br>
<br>
Look into what instdir/program/python (a shell script) is doing before <br>
executing instdir/program/python.bin (the actual python executable).<br>
_______________________________________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org" target="_blank">LibreOffice@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/libreoffice" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/libreoffice</a></blockquote></div>