Remove stale .pyc files before tests and local run
This should make running tests faster, as we do not remove all .pyc files anymore!
This commit is contained in:
parent
11ed593880
commit
c58fdf786c
2 changed files with 3 additions and 1 deletions
|
|
@ -7,4 +7,6 @@ if [ -z "${PYTHON}" ]; then
|
|||
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" "$@"
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ fi
|
|||
|
||||
# path to sources
|
||||
WEBOOB_DIR=$(readlink -e $(dirname $0)/..)
|
||||
find $WEBOOB_DIR -name "*.pyc" -delete
|
||||
${PYTHON} "$(dirname $0)/stale_pyc.py"
|
||||
echo "file://$WEBOOB_DIR/modules" > "${WEBOOB_TMPDIR}/sources.list"
|
||||
|
||||
export WEBOOB_WORKDIR="${WEBOOB_TMPDIR}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue