fix: adjust paths for safesight-control location

This commit is contained in:
tian 2026-07-20 14:13:02 +08:00
parent f5d7da6fd2
commit af7447ccad

View File

@ -4,14 +4,14 @@ param(
[string]$MediaConfig = "configs/sample_cam1.json",
[string]$VideoFile = "",
[string]$SafesightdConfig = "..\safesight-control\safesightd.json"
[string]$SafesightdConfig = "safesightd.json"
)
$ErrorActionPreference = "Stop"
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$edgeDir = (Resolve-Path (Join-Path $scriptDir "..")).Path
$controlDir = (Resolve-Path (Join-Path $edgeDir "..\safesight-control")).Path
$controlDir = (Resolve-Path (Join-Path $scriptDir "..")).Path
$edgeDir = (Resolve-Path (Join-Path $controlDir "..\safesight-edge")).Path
# ── paths ──────────────────────────────────────────────
$mediamtx = "C:\Software\mediamtx\mediamtx.exe"