Skip to content

Commit 6a5ed08

Browse files
committed
Add project root to python path
Signed-off-by: Charlie Truong <chtruong@nvidia.com>
1 parent f45739d commit 6a5ed08

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
# For the full list of built-in configuration values, see the documentation:
1818
# https://www.sphinx-doc.org/en/master/usage/configuration.html
1919

20+
import os
21+
import sys
22+
23+
# Add the project root directory to the Python path
24+
sys.path.insert(0, os.path.abspath(".."))
2025

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

0 commit comments

Comments
 (0)