Tuesday, April 10, 2012

Delete all pyc files

Scenario: You've just pushed a slew of compiled python files 
Solution:
1. Terminal into your project directory
2. Enter: 'find . -type f -name "*.pyc" -delete;' (without the quotes)
3. Add a .gitignore file to the root of your project with '*.pyc' as its content
4. Re-push the project