kpathsea: Program-specific files

 
 7.3 Program-specific files
 ==========================
 
 Many programs will need to find some configuration files.  Kpathsea
 contains some support to make it easy to place them in their own
 directories.  The Standard TeX directory structure (⇒Introduction
 (tds)Top.), specifies that such files should go into a subdirectory
 named after the program, like 'texmf/ttf2pk'.
 
    Two formats, 'kpse_program_text_format' and
 'kpse_program_binary_format', use '.:$TEXMF/PROGRAM//' as their
 compiled-in search path.  To override this default, you can use the
 variable 'PROGRAMINPUTS' in the environment and/or 'texmf.cnf'.  That is
 to say, the name of the variable is constructed by converting the name
 of the program to upper case, and appending 'INPUTS'.
 
    The only difference between these two formats is whether
 'kpathsea_open_file' will open the files it finds in text or binary
 mode.