Skip to content

Commit fe4aee9

Browse files
committed
docs(conf): Fix loading in doctests
1 parent 186c93a commit fe4aee9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
from libtmux import test # NOQA
1111

1212
# Get the project root dir, which is the parent dir of this
13-
cwd = Path.cwd()
13+
cwd = Path(__file__).parent
1414
project_root = cwd.parent
1515

1616
sys.path.insert(0, str(project_root))
1717
sys.path.insert(0, str(cwd / "_ext"))
1818

1919
# package data
2020
about: Dict[str, str] = {}
21-
with open("../libtmux/__about__.py") as fp:
21+
with open(project_root / "libtmux" / "__about__.py") as fp:
2222
exec(fp.read(), about)
2323

2424
extensions = [

0 commit comments

Comments
 (0)