Skip to content

Commit e937e9a

Browse files
committed
replace os with pathlib
1 parent 64d8d52 commit e937e9a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/manual/source/conf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
# documentation root, use os.path.abspath to make it absolute, like shown here.
1212
#
1313
import sys
14-
import os
15-
sys.path.insert(0, os.path.abspath('../..'))
16-
sys.path.insert(0, os.path.abspath('../../../src'))
14+
from pathlib import Path
15+
16+
sys.path.insert(0, str(Path('../../..').resolve()))
17+
sys.path.insert(0, str(Path('../../../src').resolve()))
1718

1819

1920
# -- Project information -----------------------------------------------------

0 commit comments

Comments
 (0)