Load non-minified JS files from sphinx.package_dir

This makes the code consistent with other parts of Sphinx, and allows
downstream packagers to move all static files to /usr/share.
This commit is contained in:
Dmitry Shachnev 2016-12-22 10:36:15 +03:00
parent 07633a5a71
commit 01977fcb72

View File

@ -414,7 +414,7 @@ class IndexBuilder(object):
def get_js_stemmer_rawcode(self):
if self.lang.js_stemmer_rawcode:
return path.join(
path.dirname(path.abspath(__file__)),
sphinx.package_dir, 'search',
'non-minified-js',
self.lang.js_stemmer_rawcode
)