MCPcopy Index your code
hub / github.com/ipython/ipython / kpsewhich

Function kpsewhich

IPython/lib/latextools.py:203–213  ·  view source on GitHub ↗

Invoke kpsewhich command with an argument `filename`.

(filename)

Source from the content-addressed store, hash-verified

201
202
203def kpsewhich(filename):
204 """Invoke kpsewhich command with an argument `filename`."""
205 try:
206 find_cmd("kpsewhich")
207 proc = subprocess.Popen(
208 ["kpsewhich", filename],
209 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
210 (stdout, stderr) = proc.communicate()
211 return stdout.strip().decode('utf8', 'replace')
212 except FindCmdError:
213 pass
214
215
216def genelatex(body, wrap):

Callers 1

genelatexFunction · 0.85

Calls 1

find_cmdFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…