2016-01-12 13:08:43 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
2012-10-12 19:26:40 +02:00
|
|
|
|
2017-07-29 05:40:39 +02:00
|
|
|
# Remove .pyc files to prevent loading stale code.
|
2012-10-12 19:26:40 +02:00
|
|
|
#
|
|
|
|
# You can run it automatically on checkout:
|
|
|
|
#
|
|
|
|
# echo ./tools/clean-repo > .git/hooks/post-checkout
|
|
|
|
# chmod +x .git/hooks/post-checkout
|
|
|
|
|
|
|
|
cd "$(dirname "$0")/.."
|
2017-07-29 05:40:39 +02:00
|
|
|
find . -name "*.pyc" -exec rm -f {} \;
|
2017-07-14 21:34:12 +02:00
|
|
|
find . -name "__pycache__" -prune -exec rm -rf {} \;
|