"""Vendored neural network packages: SegEarth-OV-3 and Depth-Anything-3.

On import, this module adds the necessary directories to sys.path so that
the internal imports inside each vendored package work unchanged:
  - src/nn/              -> makes `depth_anything_3.*` importable
  - src/nn/segearth_ov3/ -> makes `sam3.*` and `segearthov3_segmentor` importable
"""

from __future__ import annotations

import sys
from pathlib import Path

_THIS_DIR = Path(__file__).resolve().parent

_VENDOR_PATHS = [
    str(_THIS_DIR),                        # depth_anything_3.*
    str(_THIS_DIR / "segearth_ov3"),        # sam3.*, segearthov3_segmentor
]

for _p in _VENDOR_PATHS:
    if _p not in sys.path:
        sys.path.insert(0, _p)
