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>
15 lines
310 B
Python
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()
|