Skip to content

Commit

Permalink
adding the "docs/" directory to the search path so sibling python fil…
Browse files Browse the repository at this point in the history
…es are available in the search path
  • Loading branch information
ozgurakgun committed May 13, 2016
1 parent 5aab485 commit 96f17e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
import sys
import os

on_rtd = os.environ.get('READTHEDOCS') == 'True'

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand Down Expand Up @@ -358,6 +360,10 @@



# adding the "docs/" directory to the search path so sibling python files are available in the search path
# a variantion of http://stackoverflow.com/questions/9002901/how-to-import-module-to-sphinx
sys.path.append(os.path.join(os.path.dirname(__file__), '.'))

inline_highlight_respect_highlight = True
inline_highlight_literals = True

Expand Down

0 comments on commit 96f17e5

Please sign in to comment.