weboob-devel/tools/local_run.sh
Laurent Bachelier c58fdf786c Remove stale .pyc files before tests and local run
This should make running tests faster, as we do not remove all .pyc
files anymore!
2013-04-10 17:40:22 +02:00

12 lines
326 B
Bash
Executable file

#!/bin/sh
set -e
if [ -z "${PYTHON}" ]; then
which python >/dev/null 2>&1 && PYTHON=$(which python)
which python2 >/dev/null 2>&1 && PYTHON=$(which python2)
which python2.7 >/dev/null 2>&1 && PYTHON=$(which python2.7)
fi
${PYTHON} "$(dirname $0)/stale_pyc.py"
exec "${PYTHON}" "$(dirname $0)/local_run.py" "$@"