summaryrefslogtreecommitdiff
path: root/doc/_extensions/autojsdoc/parser/jsdoc.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2019-02-05 11:59:06 +0000
committerXavier Morel <xmo@odoo.com>2019-02-18 08:56:07 +0000
commitf7e1f0645e93adb2eb78c383ac9bf9fbae80315c (patch)
tree794052970c2b06962b069bf87a49a95e64e1c465 /doc/_extensions/autojsdoc/parser/jsdoc.py
parent7065ea520c26d96e85f4e887fe871a58ae87a811 (diff)
[IMP] doc: PYTHONPATH configuration
Previously we'd `append` the extensions and odoo parent directories to sys.path, however this means if an `odoo` is already installed in a sys.path (e.g. global installation, or setup.py develop in a venv, ...) *that* will be used as the source of Python code (for autodoc) instead of the Python source being synchronised with the rst, which can lead to very odd behaviour. Prepend the doc's stuff to the PYTHONPATH instead, to ensure they get priority and the code matching the rst gets loaded.
Diffstat (limited to 'doc/_extensions/autojsdoc/parser/jsdoc.py')
0 files changed, 0 insertions, 0 deletions