From 66cda18a695393974b99709a56ce1231b9d267ba Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 15 Mar 2009 06:41:53 +0900 Subject: [PATCH] fix call() --- anki/latex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anki/latex.py b/anki/latex.py index ac8c4b31b..01aa718b7 100644 --- a/anki/latex.py +++ b/anki/latex.py @@ -57,9 +57,9 @@ def stripLatex(text): text = text.replace(match.group(), "") return text -def call(*args, wait=True, **kwargs): +def call(argv, wait=True, **kwargs): try: - o = subprocess.Popen(*args, **kwargs) + o = subprocess.Popen(argv, **kwargs) except OSError: # command not found return -1