import sys
from pathlib import Path

# Ensure both the repo root and src/python are importable for tests that use
# either `from region import Region` or `from src.python...` imports.

# repo root = .../GrowNet
ROOT = Path(__file__).resolve().parents[3]
PY_SRC = ROOT / "src" / "python"

for p_var in (str(ROOT), str(PY_SRC)):
    if p_var not in sys.path:
        sys.path.insert(0, p_var)
