Repository Public MIT Research preview
1"""Même amorçage que conftest.py, pour `python3 -m unittest` (qui ne lit pas conftest.py)."""2import sys3from pathlib import Path45SEANCE = Path(__file__).resolve().parents[2]6COURS = SEANCE.parent7REFERENCE = SEANCE / "solutions" / "laboratoire-02"8DEMOS = SEANCE / "labs" / "demonstrations"9DEPART = SEANCE / "labs" / "laboratoire-02" / "depart"10for _chemin in (REFERENCE, DEMOS, Path(__file__).resolve().parent):11 if str(_chemin) not in sys.path:12 sys.path.insert(0, str(_chemin))13