From 98113c6b72f72e0cfd27723e885ddcdf5a86b512 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 16 Apr 2024 09:48:14 -0600 Subject: [PATCH] Fix wsdl resolution --- frigate/ptz/onvif.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frigate/ptz/onvif.py b/frigate/ptz/onvif.py index 2cd903709..4dbad973f 100644 --- a/frigate/ptz/onvif.py +++ b/frigate/ptz/onvif.py @@ -51,7 +51,9 @@ class OnvifController: cam.onvif.port, cam.onvif.user, cam.onvif.password, - wsdl_dir=Path(find_spec("onvif").origin).parent / "../wsdl", + wsdl_dir=str( + Path(find_spec("onvif").origin).parent / "wsdl" + ).replace("dist-packages/onvif", "site-packages"), ), "init": False, "active": False,