添加 clean_cache.bat
This commit is contained in:
40
clean_cache.bat
Normal file
40
clean_cache.bat
Normal 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
|
||||
|
Reference in New Issue
Block a user