From: jiho-sf Date: Tue, 17 Apr 2007 18:02:50 +0000 (+0000) Subject: Added some new checks for directories to add them to the PATH before calling Inkscape... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=094b93effb9a5377d40da4124f70660a514dd4a6;p=inkscape.git Added some new checks for directories to add them to the PATH before calling Inkscape binary so that third party tools (python install, anything in /usr/local/bin) get detected. OS X specific. --- diff --git a/packaging/macosx/Resources/bin/inkscape b/packaging/macosx/Resources/bin/inkscape index 291952d45..a97036ebc 100755 --- a/packaging/macosx/Resources/bin/inkscape +++ b/packaging/macosx/Resources/bin/inkscape @@ -10,10 +10,19 @@ CWD="`(cd \"\`dirname \\\"$0\\\"\`\"; echo $PWD)`" TOP="`dirname \"$CWD\"`" export DYLD_LIBRARY_PATH="$TOP/lib" +# add /usr/local/bin which, though standard, don't seem to be in the PATH +PATH="/usr/local/bin:$PATH" +# add python from MacPython http://homepages.cwi.nl/~jack/macpython/macpython-osx.html +if [ -d /Library/Frameworks/Python.framework/Versions/Current/bin ] +then + export PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:$PATH" +fi +# add Fink if [ -d /sw/bin ] then export PATH="/sw/bin/:$PATH" fi +# add MacPorts (former DarwinPorts) if [ -d /opt/local/bin ] then export PATH="/opt/local/bin:$PATH"