Files
core/pyuno/zipcore/mac.sh
Xisco Fauli f775f6766a pyuno: no need to add lib-tk to path
Change-Id: Ie86ba52ab2e8df66cabe75acaf440b2ca076f4c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186580
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-06-16 21:19:55 +02:00

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" "$@"