aboutsummaryrefslogtreecommitdiffstats
path: root/tools/check/check_python
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-07-15 15:33:05 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-07-15 15:33:05 +0100
commit0afa130b1f1d18bfc62b985de9132bfa427448c1 (patch)
treed20d233dfc6e6c976a27b4a437b4c9225ea4acfc /tools/check/check_python
parentc8d0c0aba303e8ba13b0c215ecdb68441eedaeed (diff)
downloadxen-0afa130b1f1d18bfc62b985de9132bfa427448c1.tar.gz
xen-0afa130b1f1d18bfc62b985de9132bfa427448c1.tar.bz2
xen-0afa130b1f1d18bfc62b985de9132bfa427448c1.zip
tools/check: We do need a default for ${PYTHON} as called from
install.sh with PYTHON possibly undefined in the environment. So we make PYTHON=python the sensible default. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/check/check_python')
-rwxr-xr-xtools/check/check_python4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/check/check_python b/tools/check/check_python
index ed7bc3652b..e9e0d04178 100755
--- a/tools/check/check_python
+++ b/tools/check/check_python
@@ -3,6 +3,10 @@
. ./funcs.sh
+if test -z ${PYTHON}; then
+ PYTHON=python
+fi
+
${PYTHON} -c '
import sys
sys.exit(sys.version_info[0] < 2 or sys.version_info[1] < 2)