run.bat 691 B

12345678910111213141516
  1. @echo off
  2. rem Guanlan module run entry (P9 dual-mode). Module: app_algorithmModel
  3. rem A) full package (start.bat present) -> start the whole system;
  4. rem B) standalone module package -> run this module's entry (bootstrap run).
  5. set "HERE=%~dp0"
  6. if exist "%HERE%..\start.bat" call "%HERE%..\start.bat" %*
  7. if exist "%HERE%..\start.bat" 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" run --module app_algorithmModel %*
  16. exit /b %errorlevel%