Skip to content

Commit a019796

Browse files
committed
Add parent-parent directory as abspath, so that pymob modules can be discovered
1 parent d82024e commit a019796

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/source/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
import os
77
import sys
8-
sys.path.insert(0, os.path.abspath('..'))
8+
# sys.path.insert(0, os.path.abspath(os.path.join("..", "..")))
9+
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))
10+
sys.path.insert(0, basedir)
911

1012
# -- Project information -----------------------------------------------------
1113
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

0 commit comments

Comments
 (0)