summaryrefslogtreecommitdiffstats
path: root/pyuno/zipcore/python.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pyuno/zipcore/python.sh')
-rw-r--r--pyuno/zipcore/python.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/pyuno/zipcore/python.sh b/pyuno/zipcore/python.sh
index 5195f68e24aa..199ed9c0eadb 100644
--- a/pyuno/zipcore/python.sh
+++ b/pyuno/zipcore/python.sh
@@ -51,6 +51,10 @@ export PATH
LD_LIBRARY_PATH=$sd_prog/../basis-link/program:$sd_prog/../basis-link/ure-link/lib${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
+# Set UNO_PATH so that "officehelper.bootstrap()" can find soffice executable:
+: ${UNO_PATH=$sd_prog}
+export UNO_PATH
+
# Set URE_BOOTSTRAP so that "uno.getComponentContext()" bootstraps a complete
# OOo UNO environment:
: ${URE_BOOTSTRAP=vnd.sun.star.pathname:$sd_prog/fundamentalrc}