diff options
author | David Tardon <dtardon@redhat.com> | 2013-01-01 12:42:09 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-01-01 13:15:01 +0100 |
commit | 2e9ec0a8bcb29681c54b16fadf6b47cab6a6b0db (patch) | |
tree | ccd44b84a1c1f13903a612083966f00900043e4c /pyuno/zipcore/nonmac.sh | |
parent | 085e0adf53baff298059980a54758d81b08bb059 (diff) |
simplify processing of python.sh
Change-Id: I583407233fad1f7aaccc137642e5f134c3ba2874
Diffstat (limited to 'pyuno/zipcore/nonmac.sh')
-rw-r--r-- | pyuno/zipcore/nonmac.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pyuno/zipcore/nonmac.sh b/pyuno/zipcore/nonmac.sh new file mode 100644 index 000000000000..0757b11fca0b --- /dev/null +++ b/pyuno/zipcore/nonmac.sh @@ -0,0 +1,12 @@ +# Set %%OOO_LIBRARY_PATH_VAR%% so that python.bin finds libpython2.6.so (this +# can go once python.bin contains a proper RPATH): +%%OOO_LIBRARY_PATH_VAR%%=$sd_prog${%%OOO_LIBRARY_PATH_VAR%%:+:$%%OOO_LIBRARY_PATH_VAR%%} +export %%OOO_LIBRARY_PATH_VAR%% + +PYTHONPATH=$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} +export PYTHONPATH +PYTHONHOME=$sd_prog/python-core-%%PYVERSION%% +export PYTHONHOME + +# execute binary +exec "$sd_prog/python.bin" "$@" |