Skip to content

Commit 9d26a2e

Browse files
committed
[DOC] fix import path error
1 parent 828003b commit 9d26a2e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/source/conf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
import sys
88
from pathlib import Path
99

10-
import hyperactive
11-
1210
# -- Path setup --------------------------------------------------------------
1311

1412
# If extensions (or modules to document with autodoc) are in another directory,
@@ -17,8 +15,9 @@
1715

1816
ON_READTHEDOCS = os.environ.get("READTHEDOCS") == "True"
1917
if not ON_READTHEDOCS:
20-
sys.path.insert(0, os.path.abspath("../.."))
18+
sys.path.insert(0, os.path.abspath("../../src"))
2119

20+
import hyperactive # noqa: E402 # must be after sys.path modification
2221

2322
# -- Extract metadata from pyproject.toml ------------------------------------
2423
# This allows documentation to stay in sync with pyproject.toml automatically

0 commit comments

Comments
 (0)