Newer
Older
AI_Lab_SCRUME_Co / desktop-plugins / ailab-limit / gw-usage.cmd
@echo off
rem Расход ключа шлюза AILab SCRUME — компактный JSON в stdout.
rem Вызывается плагином ailab-limit через gateway RPC shell.exec.
setlocal
set "PY="
for /d %%D in ("%LOCALAPPDATA%\hermes\tools\python-*") do if exist "%%D\python.exe" set "PY=%%D\python.exe"
if not defined PY (
  echo {"ok":false,"err":"python не найден в tools"}
  exit /b 0
)
"%PY%" "%~dp0gw_usage.py" %*
endlocal