3.1.4. Kpathsea

This module provides a wrapper for the Kpathsea library, cf. http://www.tug.org/kpathsea.

PyDvi.Kpathsea.kpsewhich(filename, file_format=None, options=None)[source]

Wrapper around the kpsewhich command, cf. kpsewhich(1).

file_format
used to specify the file format, see kpsewhich help for the file format list.
options
additional option for kpsewhich.

Examples:

>>> kpsewhich('cmr10', file_format='tfm')
'/usr/share/texmf/fonts/tfm/public/cm/cmr10.tfm'

Previous topic

3.1.3.14. VirtualFontParser

Next topic

3.1.5. Logging

This Page