deltatrace-deterministic-re.../tests/conftest.py

8 lines
245 B
Python

import sys
import os
# Ensure the repository root is in Python path so imports like `import deltatrace` work in pytest.
ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
if ROOT not in sys.path:
sys.path.insert(0, ROOT)