summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0f5976f)
raw | patch | inline | side by side (parent: 0f5976f)
author | jiho-sf <jiho-sf@users.sourceforge.net> | |
Thu, 27 Dec 2007 13:14:25 +0000 (13:14 +0000) | ||
committer | jiho-sf <jiho-sf@users.sourceforge.net> | |
Thu, 27 Dec 2007 13:14:25 +0000 (13:14 +0000) |
packaging/macosx/Resources/bin/inkscape | patch | blob | history |
index 53679e6c39553c774e5da5d7f8419733831e646f..2242f68618ddc11651e748c17cf1b394d8816f68 100755 (executable)
# MacPorts (former DarwinPorts)
export PATH="/opt/local/bin:/sw/bin/:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/local/bin:$CWD:$PATH"
-# Test wether we are using the stock python install
-# In which case we can use the python modules shipped alongside Inkscape, in the app bundle
-if [ `which python` = "/usr/bin/python" ]; then
- export PYTHONPATH="$TOP/python/site-packages"
- # NB: we are only preprending some stuff to the default python path so if the directory does not exist it should not harm the rest
-fi
+# Setup PYTHONPATH to use python modules shipped with Inkscape
+ARCH=`arch`
+PYTHON_VERS=`python -V 2>&1 | cut -c 8-10`
+export PYTHONPATH="$TOP/python/site-packages/$ARCH/$PYTHON_VERS"
+# NB: we are only preprending some stuff to the default python path so if the directory does not exist it should not harm the rest
export DYLD_LIBRARY_PATH="$TOP/lib"