mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
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:
parent
6bdfc72d37
commit
8004ebf048
@ -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 = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user