Mercurial > hg > graal-jvmci-8
view pytools/gl @ 3705:6917cd12e8f8
CiGenericCallback handling: removed (buggy) native exception handling code, changed to callbackInternal
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 01 Dec 2011 15:04:28 +0100 |
parents | 9878f53ebe09 |
children |
line wrap: on
line source
#!/bin/bash dir=`/bin/pwd` while [ ! \( -f "$dir/pytools/gl.py" -a -f "$dir/GRAAL_README" \) ]; do dir="$(dirname $dir)" if [ "$dir" = "/" ]; then echo "Cannot find 'pytools/gl.py' in `/bin/pwd` or any of it's parents" exit 1 fi done python <<END import sys major, minor, micro, _, _ = sys.version_info if major != 2 or minor != 7: raise SystemExit('The gl.py script requires Python 2.7, not {0}.{1}.{2}'.format(major, minor, micro)) END if [ $? -eq 0 ]; then exec python "$dir/pytools/gl.py" "$@" fi