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>
This commit is contained in:
14
platform/as_platform/api/__main__.py
Normal file
14
platform/as_platform/api/__main__.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user