Ricordanza
6/16/2016 - 10:27 AM

This removes all .pyc and .pyo files, and __pycache__ directories. It's also very fast. see http://stackoverflow.com/questions/785519/how-do

This removes all .pyc and .pyo files, and pycache directories. It's also very fast. see http://stackoverflow.com/questions/785519/how-do-i-remove-all-pyc-files-from-a-project

function pyclean () {
  find . -type f -name "*.py[co]" -delete
  find . -type d -name "__pycache__" -delete
}