Source code for conftest

"""conftest.py — adds the plugin directory to sys.path for this tests/ folder.

See wolfhece/_builtin_plugins/conftest.py for the explanation.
"""
import sys
from pathlib import Path

[docs] _PLUGIN_DIR = Path(__file__).parent.parent
if str(_PLUGIN_DIR) not in sys.path: sys.path.insert(0, str(_PLUGIN_DIR))