@echo off
chcp 65001 >nul
setlocal EnableExtensions
set "ROOT=%~dp0"
set "PYTHONDONTWRITEBYTECODE=1"
if not exist "%ROOT%runtime\python.exe" (
  echo [YOHOHOHO] 插件运行时缺失，请重新下载安装包。
  pause
  exit /b 1
)
"%ROOT%runtime\python.exe" "%ROOT%setup.py"
set "RESULT=%ERRORLEVEL%"
if not "%RESULT%"=="0" pause
exit /b %RESULT%
