Spaces:
Sleeping
Sleeping
| """Root conftest: ensure project root is on sys.path for `from src.…` imports.""" | |
| import sys | |
| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parent | |
| if str(ROOT) not in sys.path: | |
| sys.path.insert(0, str(ROOT)) | |