RUN_DEMO.cmd 495 B

12345678910111213141516171819
  1. @echo off
  2. setlocal EnableExtensions
  3. chcp 65001 >nul
  4. set PYTHONIOENCODING=utf-8
  5. set PYTHONUTF8=1
  6. cd /d "%~dp0"
  7. set "PY="
  8. if exist "%~dp0runtime\python.exe" set "PY=%~dp0runtime\python.exe"
  9. if not defined PY if exist "%~dp0.venv\Scripts\python.exe" set "PY=%~dp0.venv\Scripts\python.exe"
  10. if not defined PY (
  11. echo Run START_HERE.cmd or INSTALL.cmd first.
  12. exit /b 1
  13. )
  14. if exist "%~dp0app\quickstart.py" (
  15. "%PY%" "%~dp0app\quickstart.py"
  16. ) else (
  17. "%PY%" -m hth_sdk demo
  18. )
  19. exit /b %ERRORLEVEL%