install.bat 702 B

12345678910111213141516
  1. @echo off
  2. rem Guanlan module entry (P9 dual-mode). Module: app_qualityGate
  3. rem A) full package (install root present) -> call the unified installer;
  4. rem B) standalone module package -> bootstrap a private .venv for this module.
  5. set "HERE=%~dp0"
  6. if exist "%HERE%..\install.ps1" call "%HERE%..\install.bat" %*
  7. if exist "%HERE%..\install.ps1" exit /b %errorlevel%
  8. set "PY="
  9. where py >nul 2>nul && set "PY=py -3"
  10. if not defined PY where python >nul 2>nul && set "PY=python"
  11. if not defined PY (
  12. echo [X] Python 3 not found. Install Python 3.10+ first, then re-run.
  13. exit /b 2
  14. )
  15. %PY% "%HERE%..\app_common\app_common_guanlan\bootstrap.py" install --module app_qualityGate %*
  16. exit /b %errorlevel%