Skip to content

Commit

Permalink
Insert top-level directory on path for sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivoz committed Jan 23, 2016
1 parent b7ffd78 commit e628b62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/conf.py
Expand Up @@ -11,14 +11,17 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import os
import sys

# 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.
# sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath(os.pardir))

# -- General configuration ----------------------------------------------------

import os

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:
Expand Down

0 comments on commit e628b62

Please sign in to comment.