Cache compiled regexps used in $transform
[xapian.git] / xapian-bindings / python / run-python-test
bloba02ea8aa0e0c4ea52880d13c948d244fcf46643e
1 #!/bin/sh
2 # PYTHONDONTWRITEBYTECODE is only supported by Python >= 2.6, so for older
3 # versions we set a trap which will delete any generated .pyc files after
4 # the test, or upon a signal.
5 trap 'rm -f "${srcdir-.}/*.pyc"' 0 1 2 13 15
6 PYTHONPATH=".:$PYTHONPATH" PYTHONDONTWRITEBYTECODE=1 ${PYTHON-python} "$@"
7 exit $?