1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-24 10:43:48 +00:00

Merge pull request #1335 from jdemaeyer/fix/docs-scrapy-path

Make Sphinx autodoc use local, not system-wide Scrapy
This commit is contained in:
Mikhail Korobov 2015-07-30 15:33:02 +05:00
commit b6eb3404a2

View File

@ -18,7 +18,7 @@ from os import path
# is relative to the documentation root, use os.path.abspath to make it # is relative to the documentation root, use os.path.abspath to make it
# absolute, like shown here. # absolute, like shown here.
sys.path.append(path.join(path.dirname(__file__), "_ext")) sys.path.append(path.join(path.dirname(__file__), "_ext"))
sys.path.append(path.join(path.dirname(path.dirname(__file__)), "scrapy")) sys.path.insert(0, path.dirname(path.dirname(__file__)))
# General configuration # General configuration