Skip to content

Commit

Permalink
include-in-latex: make conf.py loading more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Jun 19, 2024
1 parent cf5ba4d commit b0b5274
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include-in-latex/conf.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from pathlib import Path

import docutils
import sphinx

original_conf_py = '../doc/conf.py'

locals().update(sphinx.config.eval_config_file(original_conf_py, tags))
original_conf_py = Path(__file__).resolve().parent.parent / 'doc' / 'conf.py'
locals().update(sphinx.config.eval_config_file(str(original_conf_py), tags))

templates_path = ['_templates']
html_favicon = None
Expand Down

0 comments on commit b0b5274

Please sign in to comment.