About Multi-camera viewer optimized for RTSP streams
0

Configure Feed

Select the types of activity you want to include in your feed.

at master 465 B View raw
1import os 2import sys 3 4from PyQt6.QtGui import QIcon 5 6 7def resource_path(relative_path: str) -> str: 8 if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"): 9 base_path = sys._MEIPASS # type: ignore[attr-defined] 10 else: 11 base_path = os.path.abspath(os.path.dirname(__file__)) 12 return os.path.join(base_path, relative_path) 13 14 15def load_svg_icon(name: str) -> QIcon: 16 return QIcon(resource_path(os.path.join("assets", "icons", name)))