Skip to content

Instantly share code, notes, and snippets.

@hansent
Created August 4, 2010 18:02
Show Gist options
  • Select an option

  • Save hansent/508530 to your computer and use it in GitHub Desktop.

Select an option

Save hansent/508530 to your computer and use it in GitHub Desktop.
#!/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