Mercurial > hg > graal-jvmci-8
view pytools/gl @ 3702:584c70f06938
Do not color edges labeled with #NDF as data flow
author | Gilles Duboscq <gilles.m.duboscq@gmail.com> |
---|---|
date | Mon, 28 Nov 2011 19:07:47 +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