MCPcopy Create free account
hub / github.com/ipython/ipython / kpsewhich

Function kpsewhich

IPython/lib/latextools.py:166–176  ·  view source on GitHub ↗

Invoke kpsewhich command with an argument `filename`.

(filename)

Source from the content-addressed store, hash-verified

164
165
166def kpsewhich(filename):
167 """Invoke kpsewhich command with an argument `filename`."""
168 try:
169 find_cmd("kpsewhich")
170 proc = subprocess.Popen(
171 ["kpsewhich", filename],
172 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
173 (stdout, stderr) = proc.communicate()
174 return stdout.strip().decode('utf8', 'replace')
175 except FindCmdError:
176 pass
177
178
179def genelatex(body, wrap):

Callers 1

genelatexFunction · 0.85

Calls 1

find_cmdFunction · 0.90

Tested by

no test coverage detected