File size: 655 Bytes
f93c1b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@echo off
REM PathQA one-command launcher (Windows).
REM   pathqa-app.bat            start the app and open the browser
REM   pathqa-app.bat demo       patch QA demo
REM   pathqa-app.bat slide-demo whole-slide QA demo
setlocal
set DIR=%~dp0
cd /d "%DIR%"
if not exist ".venv" (
  echo [PathQA] first run: creating .venv and installing requirements...
  python -m venv .venv
  call .venv\Scripts\pip install --upgrade pip
  call .venv\Scripts\pip install -r requirements.txt
)
set PYTHONPATH=%DIR%;%DIR%backend;%PYTHONPATH%
if "%~1"=="" (
  .venv\Scripts\python "%DIR%pathqa\cli.py" serve
) else (
  .venv\Scripts\python "%DIR%pathqa\cli.py" %*
)
endlocal