check for dvipng in test
This commit is contained in:
parent
616e731e34
commit
9f5d23319d
@ -20,9 +20,10 @@ def test_latex():
|
|||||||
assert "executing latex" in msg
|
assert "executing latex" in msg
|
||||||
assert "installed" in msg
|
assert "installed" in msg
|
||||||
# check if we have latex installed, and abort test if we don't
|
# check if we have latex installed, and abort test if we don't
|
||||||
if (not os.path.exists("/usr/bin/latex") and
|
for cmd in ("latex", "dvipng"):
|
||||||
not os.path.exists("/usr/texbin/latex")):
|
if (not os.path.exists("/usr/bin/"+cmd) and
|
||||||
print "aborting test; latex is not installed"
|
not os.path.exists("/usr/texbin/"+cmd)):
|
||||||
|
print "aborting test; %s is not installed" % cmd
|
||||||
return
|
return
|
||||||
# fix path
|
# fix path
|
||||||
anki.latex.latexCmd[0] = "latex"
|
anki.latex.latexCmd[0] = "latex"
|
||||||
|
Loading…
Reference in New Issue
Block a user