41 lines
792 B
Batchfile
41 lines
792 B
Batchfile
@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
|
|
|