mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
if latex didn't run, prompt user to install
This commit is contained in:
parent
e0d5b9d69e
commit
04babfb102
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ def buildImg(deck, latex):
|
|||
log = open(os.path.join(tmpdir, "latex_log.txt")).read()
|
||||
msg += "<small><pre>" + cgi.escape(log) + "</pre></small>"
|
||||
except:
|
||||
msg += _("Have you installed latex and dvipng?")
|
||||
pass
|
||||
return msg
|
||||
if call(["latex", "-interaction=nonstopmode",
|
||||
|
|
Loading…
Reference in a new issue