File: conftest.py

package info (click to toggle)
execnet 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 684 kB
  • sloc: python: 5,244; makefile: 78; sh: 2
file content (14 lines) | stat: -rw-r--r-- 379 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pathlib
import sys


# Make execnet and example code importable.
cand = pathlib.Path(__file__).parent.parent.parent
if cand.joinpath("execnet", "__init__.py").exists():
    if str(cand) not in sys.path:
        sys.path.insert(0, str(cand))
cand = pathlib.Path(__file__).parent
if str(cand) not in sys.path:
    sys.path.insert(0, str(cand))

pytest_plugins = ["doctest"]