FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
start-gradint 593 B
Newer Older
Silas S. Brown's avatar
Silas S. Brown committed
#!/bin/bash
Silas S. Brown's avatar
Silas S. Brown committed
export PATH="$PATH:/usr/local/bin" # in case lame etc is there
Silas S. Brown's avatar
Silas S. Brown committed
export VERSIONER_PYTHON_PREFER_32_BIT=1 # for Tk patch to work in 10.6
export TK_SILENCE_DEPRECATION=1 # 11.4
if test -e /usr/lib/libtk.dylib || test -e /usr/lib/tkConfig.sh || test -e /usr/local/lib/tkConfig.sh || test -e /usr/bin/tkcon; then
Silas S. Brown's avatar
Silas S. Brown committed
# run using only the Tk windows:
cd "$(echo $0 | sed -e 's|start-gradint.app/Contents/MacOS/start-gradint.*$||')"
exec pythonw gradint.py
else
# run in Terminal:
open -a Terminal.app "$(echo $0 | sed -e 's|start-gradint.app/Contents/MacOS/start-gradint.*$|gradint.py|')"
fi