module helpgen.conf_path_tools

Short summary

module pyquickhelper.helpgen.conf_path_tools

Looks for paths, Miktek, Graphviz…

source on GitHub

Functions

function

truncated documentation

custom_ensuredir

Ensure that a path exists.

find_dvipng_path

Determines dvipng location.

find_graphviz_dot

Determines the path to graphviz (on Windows), the function tests the existence of versions 34 to 45 assuming it …

find_in_PATH

look into every path mentioned in %PATH% a specific file, it raises an exception if not Found

find_latex_path

Finds latex path. Returns an empty string on linux.

find_pandoc_path

Determines pandoc location. Returns an empty string on linux.

Documentation

Looks for paths, Miktek, Graphviz…

source on GitHub

pyquickhelper.helpgen.conf_path_tools.custom_ensuredir(path)[source][source]

Ensure that a path exists.

pyquickhelper.helpgen.conf_path_tools.find_dvipng_path(exc=True)[source][source]

Determines dvipng location.

Returns

imgmath_latex, imgmath_dvipng, imgmath_dvisvgm

New in version 1.8.

source on GitHub

pyquickhelper.helpgen.conf_path_tools.find_graphviz_dot(exc=True)[source][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

source on GitHub

pyquickhelper.helpgen.conf_path_tools.find_in_PATH(prog)[source][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

source on GitHub

pyquickhelper.helpgen.conf_path_tools.find_latex_path(exc=True)[source][source]

Finds latex path. Returns an empty string on linux.

Parameters

exc – raises an exception or be silent

Returns

something like C:\Program Files\MiKTeX 2.9\miktex\bin\x64

Raises

FileNotFoundError – if latex not found

source on GitHub

pyquickhelper.helpgen.conf_path_tools.find_pandoc_path(exc=True)[source][source]

Determines pandoc location. Returns an empty string on linux.

Returns

path to pandoc

source on GitHub