We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfaeda4 commit fa34180Copy full SHA for fa34180
docs/conf.py
@@ -3,15 +3,17 @@
3
import os
4
import sys
5
from os.path import dirname, relpath
6
+from pathlib import Path
7
8
import libtmux # NOQA
9
from libtmux import test # NOQA
10
11
# Get the project root dir, which is the parent dir of this
-cwd = os.getcwd()
12
-project_root = os.path.dirname(cwd)
+cwd = Path.cwd()
13
+project_root = cwd.parent
14
-sys.path.insert(0, project_root)
15
+sys.path.insert(0, str(project_root))
16
+sys.path.insert(0, str(cwd / "_ext"))
17
18
19
# package data
0 commit comments