2
# -*- coding: ISO-8859-1 -*-
5
# Copyright (C) 2003-2004 J�rg Lehmann <joergl@users.sourceforge.net>
6
# Copyright (C) 2003-2004 Andr� Wobst <wobsta@users.sourceforge.net>
8
# This file is part of PyX (http://pyx.sourceforge.net/).
10
# PyX is free software; you can redistribute it and/or modify
11
# it under the terms of the GNU General Public License as published by
12
# the Free Software Foundation; either version 2 of the License, or
13
# (at your option) any later version.
15
# PyX is distributed in the hope that it will be useful,
16
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
# GNU General Public License for more details.
20
# You should have received a copy of the GNU General Public License
21
# along with PyX; if not, write to the Free Software
22
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
from _pykpathsea import *
29
def find_file(filename, kpse_file_format):
30
return os.popen('kpsewhich --format="%s" %s' % (kpse_file_format, filename),
34
kpse_any_glyph_format = "bitmap font"
35
kpse_tfm_format = "tfm"
36
kpse_afm_format = "afm"
37
kpse_base_format = "base"
38
kpse_bib_format = "bib"
39
kpse_bst_format = "bst"
40
kpse_cnf_format = "cnf"
41
kpse_db_format = "ls-R"
42
kpse_fmt_format = "fmt"
43
kpse_fontmap_format = "map"
44
kpse_mem_format = "mem"
46
kpse_mfpool_format = "mfpool"
47
kpse_mft_format = "mft"
49
kpse_mppool_format = "mppool"
50
kpse_mpsupport_format = "MetaPost support"
51
kpse_ocp_format = "ocp"
52
kpse_ofm_format = "ofm"
53
kpse_opl_format = "opl"
54
kpse_otp_format = "otp"
55
kpse_ovf_format = "ovf"
56
kpse_ovp_format = "ovp"
57
kpse_pict_format = "graphics/figure"
58
kpse_tex_format = "tex"
59
kpse_texdoc_format = "TeX system documentation"
60
kpse_texpool_format = "texpool"
61
kpse_texsource_format = "TeX system sources"
62
kpse_tex_ps_header_format = "PostScript header"
63
kpse_troff_font_format = "Troff fonts"
64
kpse_type1_format = "type1 fonts"
66
kpse_dvips_config_format = "dvips config"
67
kpse_ist_format = "ist"
68
kpse_truetype_format = "truetype fonts"
69
kpse_type42_format = "type42 fonts"
70
kpse_web2c_format = "web2c"
71
kpse_program_text_format = "other text files"
72
kpse_program_binary_format = "other binary files"
73
kpse_miscfonts_format = "misc fonts"
74
kpse_web_format = "web"
75
kpse_cweb_format = "cweb"