doc: use an absolute path in sys.path
The idea and rationale is similar to https://phab.mercurial-scm.org/D12599
(landed as 1b6e381521c5).
Differential Revision: https://phab.mercurial-scm.org/D12622
# name space package to host third party extensionsfrom __future__ import absolute_importimport pkgutil__path__ = pkgutil.extend_path(__path__, __name__)