Skip to content

Commit

Permalink
REFACT: add log to check_pandoc_install
Browse files Browse the repository at this point in the history
  • Loading branch information
SMoraisAnsys committed Feb 20, 2024
1 parent ca068fe commit ad5896a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ def check_pandoc_installed(app):
pandoc_path = pypandoc.get_pandoc_path()
pandoc_dir = os.path.dirname(pandoc_path)
if pandoc_dir not in os.environ["PATH"].split(os.pathsep):
logger.info("Pandoc directory is not in $PATH.")
os.environ["PATH"] += os.pathsep + pandoc_dir
logger.info(f"Pandoc directory '{pandoc_dir}' has been added to $PATH")
except OSError:
logger.error("Pandoc was not found, please add it to your path or install pypandoc-binary")

Expand Down

0 comments on commit ad5896a

Please sign in to comment.