#!/bin/bash
scriptname=`basename $0`
if [ ! -d "/build/toolchain" ]; then
    cat <<EOF 1>&2
$scriptname: error: /build/toolchain does not contain the expected binaries.
$scriptname: error: Please see https://wiki.eng.vmware.com/Build/Toolchain/Access
$scriptname: error: for information on how to set up toolchain.
EOF
   exit 2
fi

case `uname -s` in
   Linux) python_root=/build/toolchain/lin32/python-2.7.1;;
   Darwin) python_root=/build/toolchain/mac32/python-2.7.1;;
   *) echo "$scriptname: unsupported platform: `uname -s`" 1>&2; exit 2;;
esac
python=$python_root/bin/python

exec "$python" -Wignore::DeprecationWarning "$0".py "$@"
exit $?
