diff --git a/docs/conf.py b/docs/conf.py index 03b62fa..47f6a86 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,14 +19,17 @@ import sys, os # documentation root, use os.path.abspath to make it absolute, like shown here. #sys.path.insert(0, os.path.abspath('.')) -# Get the project root dir, which is the parent dir of this -cwd = os.getcwd() -project_root = os.path.dirname(cwd) +if os.getenv('READTHEDOCS', None) == 'True': + pass +else: + # Get the project root dir, which is the parent dir of this + cwd = os.getcwd() + project_root = os.path.dirname(cwd) -# Insert the project root dir as the first element in the PYTHONPATH. -# This lets us ensure that the source package is imported, and that its -# version is used. -sys.path.insert(0, project_root) + # Insert the project root dir as the first element in the PYTHONPATH. + # This lets us ensure that the source package is imported, and that its + # version is used. + sys.path.insert(0, project_root) import fuzzysearch