Add clean_pyc.bat (#1527)

* Create clean_pyc.bat

Add pyc cleaner script for windows to clear all pyc cache files.
https://github.com/Tautulli/Tautulli/issues/1523#issuecomment-944938745

* Update clean_pyc.bat

fix comment

* Remove __pycache__ folders in clean_pyc scripts

Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
This commit is contained in:
reloxx13 2021-10-22 02:30:17 +02:00 committed by GitHub
commit 22f4b33087
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

6
contrib/clean_pyc.sh Executable file → Normal file
View file

@ -5,5 +5,7 @@ echo "This script will remove *.pyc files. These files are generated by Python,
echo "Press enter to continue, or CTRL + C to quit."
read
# Remove the *.pyc
find "`dirname $0`/.." -type f -name "*.pyc" -exec rm -rf {} \;
# Remove *.pyc files
find "`dirname $0`/.." -type f -name "*.pyc" -exec rm -rf {} \;
# Remove __pycache__ folders
find "`dirname $0`/.." -type d -name "__pycache__" -exec rm -rf {} \;