Skip to content

Commit a4d1941

Browse files
authored
Attempt a Python path hack to get ReadTheDocs build working (#1338)
1 parent 1472b99 commit a4d1941

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
documentation root, use os.path.abspath to make it absolute, like shown here.
1919
"""
2020

21+
import sys
22+
from os.path import abspath, dirname
23+
24+
# Make sure we get the version of this copy of cmd2
25+
sys.path.insert(1, dirname(dirname(abspath(__file__))))
26+
2127
# Import for custom theme from Read the Docs
2228
import sphinx_rtd_theme
2329

0 commit comments

Comments
 (0)