fixing readthedocs.org WIP

This commit is contained in:
Tal Einat 2014-05-05 15:13:56 +03:00
parent 6fab48c457
commit cf3d72a171
1 changed files with 10 additions and 7 deletions

View File

@ -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