Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
improve some error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Dec 10, 2014
1 parent 5cba140 commit 21826b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pyquickhelper/helpgen/utils_sphinx_doc_helpers.py
Expand Up @@ -816,7 +816,7 @@ def find_graphviz_dot():
return graphviz_dot
p = find_in_PATH("dot.exe")
if p is None:
raise FileNotFoundError("unable to find graphviz, look into paths such as: " + graphviz_dot)
raise FileNotFoundError("unable to find graphviz, look into paths such as: " + str(graphviz_dot))
else:
return os.path.join(p, "dot.exe")
else:
Expand All @@ -832,11 +832,11 @@ def find_latex_path():
.. versionadded:: 0.9
"""
if sys.platform.startswith("win"):
latex = r"C:\Program Files\MiKTeX 2.9\miktex\bin\x64"
latex = latex0 = r"C:\Program Files\MiKTeX 2.9\miktex\bin\x64"
if not os.path.exists(latex):
latex = find_in_PATH("latex.exe")
if latex is None or not os.path.exists(latex):
raise FileNotFoundError("unable to find latex (miktex), look into paths such as: " + latex)
raise FileNotFoundError("unable to find latex (miktex), look into paths such as: " + str(latex0))
return latex
else:
# linux
Expand Down

0 comments on commit 21826b5

Please sign in to comment.