pyclean: also remove '__pycache__' directories

This commit is contained in:
Vladimir Zakharov 2013-11-07 13:35:28 +04:00
commit f3d76e87f7

View file

@ -6,6 +6,7 @@ alias pyfind='find . -name "*.py"'
function pyclean() {
ZSH_PYCLEAN_PLACES=${*:-'.'}
find ${ZSH_PYCLEAN_PLACES} -type f -name "*.py[co]" -delete
find ${ZSH_PYCLEAN_PLACES} -type d -name "__pycache__" -delete
}
# Grep among .py files