Bug 1212427 - Reference extra Python paths in Sphinx config; r=mshal

f6d18678498b / bug 1212427 introduced a few more dependencies. Add them
to sys.path in the Sphinx config so Sphinx works on Read the Docs.

--HG--
extra : commitid : I2WmZNyGBLu
extra : rebase_source : 61b7a66c558321fc6550453411744c12fdd49f60
extra : amend_source : 8020e34f6c8a809fb1c323180b3a96433bbc2d2f
This commit is contained in:
Gregory Szorc 2015-10-09 13:03:52 -07:00
parent 6bdfc72d37
commit 8004ebf048

View File

@ -14,8 +14,17 @@ from datetime import datetime
OUR_DIR = os.path.dirname(__file__)
topsrcdir = os.path.normpath(os.path.join(OUR_DIR, '..', '..'))
sys.path.insert(0, os.path.join(topsrcdir, 'python', 'jsmin'))
sys.path.insert(0, os.path.join(topsrcdir, 'python', 'mozbuild'))
EXTRA_PATHS = (
'python/jsmin',
'python/mach',
'python/mozbuild',
'python/which',
'testing/mozbase/mozfile',
'testing/mozbase/mozprocess',
)
sys.path[:0] = [os.path.join(topsrcdir, p) for p in EXTRA_PATHS]
sys.path.insert(0, OUR_DIR)
extensions = [