Skip to content

Commit 71d4865

Browse files
committed
docs(conf): use pathlib.Path
1 parent 8dddd5e commit 71d4865

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/conf.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33
import os
44
import sys
55
from os.path import dirname, relpath
6+
from pathlib import Path
67

78
import libvcs
89

910
# Get the project root dir, which is the parent dir of this
10-
cwd = os.getcwd()
11-
project_root = os.path.dirname(cwd)
11+
cwd = Path.cwd()
12+
project_root = cwd.parent
13+
14+
sys.path.insert(0, str(project_root))
15+
sys.path.insert(0, str(cwd / "_ext"))
1216

1317
# package data
1418
about = {}

0 commit comments

Comments
 (0)