The param 'close_fds' is not allowed on windos for subprocess.popen call,

if there are also redirections to stdin, stdout or stderr.
This commit is contained in:
Kornel Benko 2012-12-30 11:30:15 +01:00
parent 79b6a057da
commit 1ccc92717c

View File

@ -70,7 +70,7 @@ def main(argv):
else:
lyxfile = os.path.join(outputdir, base + ".lyx")
cmd = '%s -roundtrip -copyfiles -f %s %s' % (tex2lyx, texfile, lyxfile)
proc = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
proc = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
proc.wait()
err = proc.returncode
errorstring = proc.stderr.read()