Files
HSAP/platform/as_platform/api/__main__.py
Chengfang Lu 7c43b44c57 feat: initial HSAP platform
Huaxu Sentinel Active Safety Platform with embedded algorithm code,
Docker Compose setup, and vendored dataset scaffolds for clone-and-run.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-25 16:59:59 +08:00

15 lines
310 B
Python

import sys
from pathlib import Path
_ROOT = Path(__file__).resolve().parents[3] # HSAP repo root
_PLATFORM = _ROOT / "platform"
for p in (_ROOT, _PLATFORM):
s = str(p)
if s not in sys.path:
sys.path.insert(0, s)
from as_platform.api.server import main
if __name__ == "__main__":
main()