Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@
sys.path.append(os.path.abspath('cpython/Doc/tools/extensions'))
sys.path.append(os.path.abspath('cpython/Doc/includes'))

# Import all the Sphinx settings from cpython
# This import will trigger warnings on the 'Include/patchlevel.h'
# not being found, because it execute the content of the whole file,
# and there there is a local call to 'get_header_version' like the one
# we have in a few lines.
sys.path.insert(0, os.path.abspath('cpython/Doc'))
from conf import *
# Import all the Sphinx settings from cpython.
# Warning: calling 'eval' and 'compile' is usually not recommended, but in this case
# we are relying on the official sphinx configuration from cpython.
cpython_sphinx_conf = Path(os.path.abspath('cpython/Doc/conf.py'))
eval(compile(cpython_sphinx_conf.read_bytes(), str(cpython_sphinx_conf), "exec"), globals())

project = 'Python en Español'

Expand Down