debuggers.hg
view tools/check/check_python_devel @ 19957:7b8f6416aae4
Make python check scripts use of $(PYTHON) make variable.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Thu Jul 09 17:05:07 2009 +0100 (2009-07-09) |
parents | bcae9d2cc2f8 |
children | bc80ccb79c5b |
line source
1 #!/bin/sh
2 # CHECK-BUILD
4 . ./funcs.sh
6 if test -z ${PYTHON}; then
7 PYTHON=`/usr/bin/env python 2>/dev/null`
8 fi
9 has_or_fail ${PYTHON}
11 ${PYTHON} -c '
12 import os.path, sys
13 for p in sys.path:
14 if os.path.exists(p + "/config/Makefile"):
15 sys.exit(0)
16 sys.exit(1)
17 ' || fail "can't find python devel files"