Skip to content

Commit f2f9e7c

Browse files
committed
change sys.path to pathlib.Path in conf.py
1 parent 5af1da6 commit f2f9e7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/manual/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
# -- Path setup --------------------------------------------------------------
88

99
# If extensions (or modules to document with autodoc) are in another directory,
10-
# add these directories to sys.path here. If the directory is relative to the
10+
# add these directories to pathlib.Path here. If the directory is relative to the
1111
# documentation root, use os.path.abspath to make it absolute, like shown here.
1212
#
1313
import sys
1414
import os
15-
sys.path.insert(0, os.path.abspath('../..'))
16-
sys.path.insert(0, os.path.abspath('../../../src'))
15+
pathlib.Path.insert(0, os.path.abspath('../..'))
16+
pathlib.Path.insert(0, os.path.abspath('../../../src'))
1717

1818

1919
# -- Project information -----------------------------------------------------

0 commit comments

Comments
 (0)