fix call()

This commit is contained in:
Damien Elmes 2009-03-15 06:41:53 +09:00
parent 64275642ba
commit 66cda18a69

View file

@ -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