"""Path bootstrap for execution/providers/tests.

These tests need both `recoil/` (so `from recoil.execution.providers...` resolves)
and `recoil/pipeline/` (defensive — the lazy core.model_profiles import in
gemini_vision.py prefers RECOIL_ROOT). Pattern mirrors
`recoil/pipeline/tests/conftest.py`.
"""

from __future__ import annotations

import sys
from pathlib import Path

# recoil/execution/providers/tests/ -> recoil/execution/providers/ -> recoil/execution/ -> recoil/
RECOIL_ROOT = Path(__file__).resolve().parent.parent.parent.parent
PIPELINE_ROOT = RECOIL_ROOT / "pipeline"

for p in (str(PIPELINE_ROOT), str(RECOIL_ROOT)):
    if p not in sys.path:
        sys.path.insert(0, p)
