9 lines
250 B
Python
9 lines
250 B
Python
"""Pytest configuration — ensure the project root is on ``sys.path``."""
|
|
|
|
import os
|
|
import sys
|
|
|
|
_PROJECT_ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
|
|
if _PROJECT_ROOT not in sys.path:
|
|
sys.path.insert(0, _PROJECT_ROOT)
|