From ad5896a8b7fcb136ffffed1b4e040ad356d65b3f Mon Sep 17 00:00:00 2001 From: Sebastien Morais Date: Tue, 20 Feb 2024 11:20:06 +0100 Subject: [PATCH] REFACT: add log to check_pandoc_install --- doc/source/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/source/conf.py b/doc/source/conf.py index 920fe9e40..9b08af591 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -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")