Re: Using OOoPython from an external script

2012-04-09 Thread Glenn Ramsey
Hi Christian, all, On 09/04/12 11:28, Christian Lohmaier wrote: Hi Glenn, *, On Fri, Apr 6, 2012 at 10:32 PM, Glenn Ramsey wrote: [...] In order for a system python script to be able to execute lo-python it needs to know where LO is installed and what platform it is running on. But why do

Re: Using OOoPython from an external script

2012-04-08 Thread Christian Lohmaier
Hi Glenn, *, On Fri, Apr 6, 2012 at 10:32 PM, Glenn Ramsey wrote: > [...] > In order for a system python script to be able to execute lo-python it needs > to know where LO is installed and what platform it is running on. But why do you want to run system python when LO on Mac comes with its own

Re: Using OOoPython from an external script

2012-04-06 Thread Miklos Vajna
On Sat, Apr 07, 2012 at 08:32:37AM +1200, Glenn Ramsey wrote: > In order for a system python script to be able to execute lo-python it > needs to know where LO is installed and what platform it is running on. I > hacked up code that does this on Windows by looking in the registry for > soffice.ex

Re: Using OOoPython from an external script

2012-04-06 Thread Glenn Ramsey
On Fri, Apr 6, 2012 at 10:09 PM, Glenn Ramsey wrote: > On Fri, Apr 6, 2012 at 7:32 PM, Miklos Vajna wrote: > >> On Fri, Apr 06, 2012 at 09:05:29AM +1200, Glenn Ramsey < >> glenn.ram...@slidespeech.com> wrote: >> > with OOoPython on the command line (in OSX 10.6) I discovered that the >> > PYTHONP

Re: Using OOoPython from an external script

2012-04-06 Thread Glenn Ramsey
On Fri, Apr 6, 2012 at 7:32 PM, Miklos Vajna wrote: > On Fri, Apr 06, 2012 at 09:05:29AM +1200, Glenn Ramsey < > glenn.ram...@slidespeech.com> 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 successfull

Re: Using OOoPython from an external script

2012-04-06 Thread Miklos Vajna
On Fri, Apr 06, 2012 at 09:05:29AM +1200, Glenn Ramsey 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 > some

Using OOoPython from an external script

2012-04-05 Thread Glenn Ramsey
Hi All, I initially asked this on the users list and was redirected here. I am wanting to call LibreOffice from a Python script, using uno, to convert some files. Because of version incompatibilities between the system Python and the version distributed with LO (OOoPython) it seems that the only