libreoffice/pyuno-path.diff
Stephan Kulow d80bc990bb Accepting request 97180 from LibreOffice:Unstable
- updated to libreoffice-3.4.4.3 (SUSE 3.4.4-rc1 == final)

- fix sha-bang in unopkg-sync-bundled script

- fix debuginfo missing for some binaries

- fix libreoffice-pyuno so that 'import uno' works in python

- used the internal mysql cppconnector even for openSUSE-12.2;

- updated to libreoffice-3.4.4.3 (SUSE 3.4.4-rc1 == final):

OBS-URL: https://build.opensuse.org/request/show/97180
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libreoffice?expand=0&rev=26
2011-12-25 16:35:54 +00:00

16 lines
575 B
Diff

--- pyuno/source/module/uno.py 2011-11-30 18:39:37 -0500
+++ pyuno/source/module/uno.py 2011-11-30 19:38:14 -0500
@@ -26,6 +26,12 @@
#*************************************************************************
import os
import sys
+import platform
+
+if platform.machine() == 'x86_64':
+ sys.path.append('/usr/lib64/libreoffice/basis-link/program')
+else:
+ sys.path.append('/usr/lib/libreoffice/basis-link/program')
if getattr(os.environ, 'URE_BOOTSTRAP', None) is None:
os.environ['URE_BOOTSTRAP'] = "vnd.sun.star.pathname:@INSTALLDIR@/program/fundamentalrc"