启动.bat 610 B

12345678910111213141516171819
  1. @echo off
  2. rem RawvStudio launcher (ASCII only to avoid codepage garbling)
  3. setlocal
  4. set "HERE=%~dp0"
  5. set "PY=C:\Users\Administrator\.workbuddy\binaries\python\envs\cv\Scripts\pythonw.exe"
  6. if not exist "%PY%" set "PY=C:\Users\Administrator\.workbuddy\binaries\python\envs\cv\Scripts\python.exe"
  7. if not exist "%PY%" set "PY=pythonw"
  8. where pythonw >nul 2>&1
  9. if not exist "%PY%" set "PY=python"
  10. if exist "%PY%" goto run
  11. echo [ERROR] Python not found. Please install Python 3.10+ and:
  12. echo pip install opencv-python numpy PySide6-Essentials
  13. pause
  14. exit /b 1
  15. :run
  16. start "" "%PY%" "%HERE%app.py" %*
  17. exit /b 0