blob: 57e401fce32293ff1abd8738e3448f175d8efe88 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
@echo off
chcp 65001 >nul
rem Start the THB API server on the LAN.
rem The Android app connects to http://<this PC's IP>:8787
setlocal
set "ROOT=%~dp0.."
for /d %%D in ("%ROOT%\mh_src\osf\os-findmy-*") do set "OSF=%%D"
if not defined OSF (
echo [error] mh_src\osf\os-findmy-* not found
pause
exit /b 1
)
set "PY=%OSF%\.venv\Scripts\python.exe"
if not exist "%PY%" (
echo [error] os-findmy venv not found: %PY%
pause
exit /b 1
)
"%PY%" "%~dp0thb_server.py" --host 0.0.0.0 --port 8787 %*
pause
|