python.sh (fce70c9b) | python.sh (28b67305) |
---|---|
1#!/bin/sh 2#************************************************************** 3# 4# Licensed to the Apache Software Foundation (ASF) under one 5# or more contributor license agreements. See the NOTICE file 6# distributed with this work for additional information 7# regarding copyright ownership. The ASF licenses this file 8# to you under the Apache License, Version 2.0 (the --- 24 unchanged lines hidden (view full) --- 33sd_prog=`pwd` 34cd "$sd_cwd" 35 36# Set PATH so that crash_report is found: 37PATH=$sd_prog${PATH+:$PATH} 38export PATH 39 40# Set LD_LIBRARY_PATH so that "import pyuno" finds libpyuno.so: | 1#!/bin/sh 2#************************************************************** 3# 4# Licensed to the Apache Software Foundation (ASF) under one 5# or more contributor license agreements. See the NOTICE file 6# distributed with this work for additional information 7# regarding copyright ownership. The ASF licenses this file 8# to you under the Apache License, Version 2.0 (the --- 24 unchanged lines hidden (view full) --- 33sd_prog=`pwd` 34cd "$sd_cwd" 35 36# Set PATH so that crash_report is found: 37PATH=$sd_prog${PATH+:$PATH} 38export PATH 39 40# Set LD_LIBRARY_PATH so that "import pyuno" finds libpyuno.so: |
41LD_LIBRARY_PATH=$sd_prog/../basis-link/program:$sd_prog/../basis-link/ure-link/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} | 41LD_LIBRARY_PATH=$sd_prog:${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} |
42export LD_LIBRARY_PATH 43 44# Set UNO_PATH so that "officehelper.bootstrap()" can find soffice executable: 45: ${UNO_PATH=$sd_prog} 46export UNO_PATH 47 48# Set URE_BOOTSTRAP so that "uno.getComponentContext()" bootstraps a complete 49# OOo UNO environment: 50: ${URE_BOOTSTRAP=vnd.sun.star.pathname:$sd_prog/fundamentalrc} 51export URE_BOOTSTRAP 52 | 42export LD_LIBRARY_PATH 43 44# Set UNO_PATH so that "officehelper.bootstrap()" can find soffice executable: 45: ${UNO_PATH=$sd_prog} 46export UNO_PATH 47 48# Set URE_BOOTSTRAP so that "uno.getComponentContext()" bootstraps a complete 49# OOo UNO environment: 50: ${URE_BOOTSTRAP=vnd.sun.star.pathname:$sd_prog/fundamentalrc} 51export URE_BOOTSTRAP 52 |
53PYTHONPATH=$sd_prog/../basis-link/program:$sd_prog/../basis-link/program/python-core-%%PYVERSION%%/lib:$sd_prog/../basis-link/program/python-core-%%PYVERSION%%/lib/lib-dynload:$sd_prog/../basis-link/program/python-core-%%PYVERSION%%/lib/lib-tk:$sd_prog/../basis-link/program/python-core-%%PYVERSION%%/lib/site-packages${PYTHONPATH+:$PYTHONPATH} | 53PYTHONPATH=$sd_prog:$sd_prog/python-core-%%PYVERSION%%/lib:$sd_prog/python-core-%%PYVERSION%%/lib/lib-dynload:$sd_prog/python-core-%%PYVERSION%%/lib/lib-tk:$sd_prog/python-core-%%PYVERSION%%/lib/site-packages${PYTHONPATH+:$PYTHONPATH} |
54export PYTHONPATH | 54export PYTHONPATH |
55PYTHONHOME=$sd_prog/../basis-link/program/python-core-%%PYVERSION%% | 55PYTHONHOME=$sd_prog/python-core-%%PYVERSION%% |
56export PYTHONHOME 57 58# execute binary | 56export PYTHONHOME 57 58# execute binary |
59exec "$sd_prog/../basis-link/program/python.bin" "$@" | 59exec "$sd_prog/python.bin" "$@" |