"""Test runner sitecustomize: ensure the src/ package layout is on sys.path. This helps test environments (like pytest) that may not have the src/ layout on sys.path by default when the repository uses a source-layout layout. """ import sys, os ROOT = os.path.abspath(os.path.dirname(__file__)) SRC_ROOT = os.path.join(ROOT, "src") if os.path.isdir(SRC_ROOT) and SRC_ROOT not in sys.path: sys.path.insert(0, SRC_ROOT) # Also ensure repository root is on sys.path so top-level package can be found ROOT_PKG = ROOT if ROOT_PKG not in sys.path: sys.path.insert(0, ROOT_PKG)