https://bugs.freedesktop.org/show_bug.cgi?id=50682

--- Comment #11 from Loic Nageleisen <[email protected]> 2012-06-21 
11:45:25 PDT ---
Following a comment of someone able to hack hos way into making unoconv behave
on Lion and combined with the fact that it comes from some dylib, I had some
progress[0] made on making 'import uno' working.

I commented the following lines in
/Applications/LibreOffice.app/Contents/MacOS/python:

DYLD_LIBRARY_PATH=$sd_prog:$sd_prog/../ure-link/lib${DYLD_LIBRARY_PATH:+:$DYLD_LIBRARY_PATH}
export DYLD_LIBRARY_PATH

import uno does work, and I tested a small number of scripts to validate it's
really working (e.g Hello World from [1]).

So a possible workaround would be to negatively test like so before setting
DYLD_LIBRARY_PATH.

if perl -e '`uname -s -r` =~ /Darwin 11\.\d+\.\d+/ and exit 1'; then
   
DYLD_LIBRARY_PATH=$sd_prog:$sd_prog/../ure-link/lib${DYLD_LIBRARY_PATH:+:$DYLD_LIBRARY_PATH}
    export DYLD_LIBRARY_PATH
fi

[0] https://github.com/dagwieers/unoconv/issues/27#issuecomment-6490497
[1] http://www.openoffice.org/udk/python/python-bridge.html#tutorial

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to