File: conftest.py

package info (click to toggle)
tmuxp 1.64.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 3,500 kB
  • sloc: python: 17,788; sh: 21; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 444 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Pytest configuration for docs/_ext doctests.

This module sets up sys.path so that sphinx_argparse_neo and other extension
modules can be imported correctly during pytest doctest collection.
"""

from __future__ import annotations

import pathlib
import sys

# Add docs/_ext to sys.path so sphinx_argparse_neo can import itself
_ext_dir = pathlib.Path(__file__).parent
if str(_ext_dir) not in sys.path:
    sys.path.insert(0, str(_ext_dir))