Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 759643 | Differences between
and this patch

Collapse All | Expand All

(-)a/docs/conf.py (-8 / +1 lines)
Lines 18-31 import os Link Here
18
import re
18
import re
19
import sys
19
import sys
20
20
21
# If extensions (or modules to document with autodoc) are in another directory,
22
# add these directories to sys.path here. If the directory is relative to the
23
# documentation root, use os.path.abspath to make it absolute, like shown here.
24
sys.path.insert(0, os.path.abspath(os.path.join(__file__, '../')))
25
26
_docs_path = os.path.dirname(__file__)
21
_docs_path = os.path.dirname(__file__)
27
_version_path = os.path.abspath(os.path.join(_docs_path,
22
_version_path = os.path.abspath(os.path.join(_docs_path,
28
                                             '..',
23
                                             os.path.pardir,
29
                                             'sphinxcontrib',
24
                                             'sphinxcontrib',
30
                                             'asyncio.py'))
25
                                             'asyncio.py'))
31
with codecs.open(_version_path, 'r', 'latin1') as fp:
26
with codecs.open(_version_path, 'r', 'latin1') as fp:
Lines 39-46 with codecs.open(_version_path, 'r', 'latin1') as fp: Link Here
39
    except IndexError:
34
    except IndexError:
40
        raise RuntimeError('Unable to determine version.')
35
        raise RuntimeError('Unable to determine version.')
41
36
42
sys.path.append('..')
43
44
# -- General configuration ------------------------------------------------
37
# -- General configuration ------------------------------------------------
45
38
46
# If your documentation needs a minimal Sphinx version, state it here.
39
# If your documentation needs a minimal Sphinx version, state it here.

Return to bug 759643