frigate/frigate/__main__.py

24 lines
505 B
Python
Raw Normal View History

2023-12-18 10:21:43 +03:00
# This is required to satisfy the chromadb dependency
__import__("pysqlite3")
2023-12-18 10:21:43 +03:00
import sys # noqa: E402
sys.modules["sqlite3"] = sys.modules.pop("pysqlite3")
2023-12-18 10:21:43 +03:00
import faulthandler # noqa: E402
import threading # noqa: E402
2023-12-18 10:21:43 +03:00
from flask import cli # noqa: E402
2021-02-17 16:23:32 +03:00
2023-12-18 10:21:43 +03:00
from frigate.app import FrigateApp # noqa: E402
2021-02-17 16:23:32 +03:00
faulthandler.enable()
2020-11-04 15:31:25 +03:00
2020-11-04 15:28:07 +03:00
threading.current_thread().name = "frigate"
2020-11-01 17:06:15 +03:00
2020-11-04 06:26:39 +03:00
cli.show_server_banner = lambda *x: None
2021-02-17 16:23:32 +03:00
if __name__ == "__main__":
2020-11-01 18:56:33 +03:00
frigate_app = FrigateApp()
2020-11-01 17:06:15 +03:00
frigate_app.start()