leftover pyc files

Jonathan Hartley tartley at tartley.com
Thu Nov 3 03:50:37 EDT 2011


This can be added to git as a post-checkout hook:

In your project's .git/hooks/post-checkout:

#!/usr/bin/env bash
cd ./$(git rev-parse --show-cdup)
find . -name '*.pyc' -exec rm '{}' ';'





More information about the Python-list mailing list