aboutsummaryrefslogtreecommitdiff
path: root/test/rpcgen_wrapper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/rpcgen_wrapper.sh')
-rwxr-xr-xtest/rpcgen_wrapper.sh11
1 files changed, 1 insertions, 10 deletions
diff --git a/test/rpcgen_wrapper.sh b/test/rpcgen_wrapper.sh
index aaa03031a1f6..fe582d57bd33 100755
--- a/test/rpcgen_wrapper.sh
+++ b/test/rpcgen_wrapper.sh
@@ -25,19 +25,10 @@ exit_failed() {
echo "Could not generate regress.gen.\[ch\] using event_rpcgen.sh" >&2
exit 1
}
-
-if [ -x /usr/bin/python2 ] ; then
- PYTHON2=/usr/bin/python2
-elif [ "x`which python2`" != x ] ; then
- PYTHON2=python2
-else
- PYTHON2=python
-fi
-
srcdir=$1
srcdir=${srcdir:-.}
-${PYTHON2} ${srcdir}/../event_rpcgen.py --quiet ${srcdir}/regress.rpc \
+${srcdir}/../event_rpcgen.py --quiet ${srcdir}/regress.rpc \
test/regress.gen.h test/regress.gen.c
case "$?" in