mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
79b6a057da
commit
1ccc92717c
@ -70,7 +70,7 @@ def main(argv):
|
|||||||
else:
|
else:
|
||||||
lyxfile = os.path.join(outputdir, base + ".lyx")
|
lyxfile = os.path.join(outputdir, base + ".lyx")
|
||||||
cmd = '%s -roundtrip -copyfiles -f %s %s' % (tex2lyx, texfile, lyxfile)
|
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()
|
proc.wait()
|
||||||
err = proc.returncode
|
err = proc.returncode
|
||||||
errorstring = proc.stderr.read()
|
errorstring = proc.stderr.read()
|
||||||
|
Loading…
Reference in New Issue
Block a user