添加 clean_cache.bat

This commit is contained in:
2025-04-16 19:55:15 +08:00
parent 6413e5f265
commit d145b6a83b

40
clean_cache.bat Normal file
View File

@@ -0,0 +1,40 @@
@echo off
chcp 65001 > nul
echo ===================================
echo Maya MCP Python Cache Cleaner
echo ===================================
echo.
echo Cleaning Python cache files...
REM Delete __pycache__ directories
for /d /r "%~dp0" %%d in (__pycache__) do (
if exist "%%d" (
echo Deleting: %%d
rd /s /q "%%d"
)
)
REM Delete .pyc files
for /r "%~dp0" %%f in (*.pyc) do (
echo Deleting: %%f
del /q "%%f"
)
REM Delete .pyo files
for /r "%~dp0" %%f in (*.pyo) do (
echo Deleting: %%f
del /q "%%f"
)
echo.
echo Cleaning completed!
echo.
echo If you encounter connection issues, please try:
echo 1. Restart your Maya
echo 2. Reload the MCP plugin in Maya
echo 3. Make sure port 4549 is not in use
echo.
echo Press any key to exit...
pause > nul