dagwieers/unoconv — pull request #71 by vpa (2012-07-30 15:08:19+00:00)
Title: Endless recursion fix for windows...

On Windows OpenOffice/LibreOffice are *two* python binaries within the basepath:

(1) C:\Program Files (x86)\OpenOffice.org 3\program\python.exe
(2) C:\Program Files (x86)\OpenOffice.org 3\Basis\program\python-core-2.6.1\bin\python.exe

find_offices() always finds (1) as office python, while unopath is always set to
'C:\Program Files (x86)\OpenOffice.org 3\Basis\program'.

Thus "sys.executable.startswith(of.*uno*path)" is always "False", which leads to an endless
(recursive) restart in python_switch() (at least on Windows).

To fix this call only python_switch() as long no python binary from within *base*path
is executed.

--vpa