Answers for "cmd remove all __pycache__"

4

remove all pycache files

find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
Posted by: Guest on June-04-2020
0

django clear _pycache_ command

py -Bc "import pathlib; [p.unlink() for p in pathlib.Path('.').rglob('*.py[co]')]"
py -Bc "import pathlib; [p.rmdir() for p in pathlib.Path('.').rglob('__pycache__')]"
Posted by: Guest on April-18-2021

Python Answers by Framework

Browse Popular Code Answers by Language