Skip to content

Commit 52661dc

Browse files
committed
add doc dir to building path for example on Travis
1 parent dbac1f7 commit 52661dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
# add these directories to sys.path here. If the directory is relative to the
2222
# documentation root, use os.path.abspath to make it absolute, like shown here.
2323

24+
# for example.py
25+
sys.path.insert(0, os.path.abspath('.'))
2426
# project root
2527
sys.path.insert(0, os.path.abspath('..'))
2628

0 commit comments

Comments
 (0)