module helpgen.conf_path_tools
¶
Short summary¶
module pyquickhelper.helpgen.conf_path_tools
Looks for paths, Miktek, Graphviz…
Functions¶
function |
truncated documentation |
---|---|
Ensure that a path exists. |
|
Determines dvipng location. |
|
Determines the path to graphviz (on Windows), the function tests the existence of versions 34 to 45 assuming it … |
|
look into every path mentioned in |
|
Finds latex path. Returns an empty string on linux. |
|
Determines pandoc location. Returns an empty string on linux. |
Documentation¶
Looks for paths, Miktek, Graphviz…
- pyquickhelper.helpgen.conf_path_tools.find_dvipng_path(exc=True)[source]¶
Determines dvipng location.
- Returns:
imgmath_latex, imgmath_dvipng, imgmath_dvisvgm
- pyquickhelper.helpgen.conf_path_tools.find_graphviz_dot(exc=True)[source]¶
Determines the path to graphviz (on Windows), the function tests the existence of versions 34 to 45 assuming it was installed in a standard folder:
C:\Program Files\MiKTeX 2.9\miktex\bin\x64
.- Parameters:
exc – raise exception of be silent
- Returns:
path to dot
- Raises:
FileNotFoundError – if graphviz not found
- pyquickhelper.helpgen.conf_path_tools.find_in_PATH(prog)[source]¶
look into every path mentioned in
%PATH%
a specific file, it raises an exception if not Found- Parameters:
prog – program to look for
- Returns:
path