Created
August 4, 2010 18:02
-
-
Save hansent/508530 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| SCRIPT_PATH="${BASH_SOURCE[0]}"; | |
| if([ -h "${SCRIPT_PATH}" ]) then | |
| while([ -h "${SCRIPT_PATH}" ]) do SCRIPT_PATH=`readlink "${SCRIPT_PATH}"`; done | |
| fi | |
| SCRIPT_PATH=`dirname ${SCRIPT_PATH}` | |
| export PYTHONPATH=${SCRIPT_PATH}/pymt:${SCRIPT_PATH}/lib/sitepackages | |
| export DYLD_FALLBACK_LIBRARY_PATH=${SCRIPT_PATH}/lib | |
| export LD_PRELOAD_PATH=${SCRIPT_PATH}/lib | |
| python $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment