mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-03-12 04:35:40 -07:00
* 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>
11 lines
415 B
Batchfile
11 lines
415 B
Batchfile
@echo off
|
|
:: Display information
|
|
echo This script will remove *.pyc files. These files are generated by Python, but they can cause conflicts after an upgrade. It's safe to remove them, because they will be regenerated.
|
|
echo Press enter to continue, or CTRL + C to quit.
|
|
pause
|
|
|
|
cd ..\
|
|
:: Remove *.pyc files
|
|
del /S *.pyc
|
|
:: Remove __pycache__ folders
|
|
for /d /r . %%d in (__pycache__) do @if exist "%%d" rd /s /q "%%d" |