mirror of
https://github.com/LibreOffice/core.git
synced 2025-07-29 15:07:54 +00:00

Change-Id: Ie86ba52ab2e8df66cabe75acaf440b2ca076f4c7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186580 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
15 lines
644 B
Bash
15 lines
644 B
Bash
# Set URE_BOOTSTRAP so that "uno.getComponentContext()" bootstraps a complete
|
|
# OOo UNO environment:
|
|
: ${URE_BOOTSTRAP=vnd.sun.star.pathname:$sd_prog/../Resources/fundamentalrc}
|
|
export URE_BOOTSTRAP
|
|
|
|
PYTHONHOME=$sd_prog/../Frameworks/LibreOfficePython.framework
|
|
export PYTHONHOME
|
|
|
|
pybasislibdir=$PYTHONHOME/Versions/%%PYVERSION%%/lib/python%%PYVERSION%%
|
|
PYTHONPATH=$sd_prog/../Resources:$sd_prog/../Frameworks:$pybasislibdir:$pybasislibdir/lib-dynload:$pybasislibdir/site-packages${PYTHONPATH+:$PYTHONPATH}
|
|
export PYTHONPATH
|
|
|
|
# execute binary
|
|
exec "$PYTHONHOME/Versions/%%PYVERSION%%/Resources/Python.app/Contents/MacOS/LibreOfficePython" "$@"
|