]> git.lyx.org Git - features.git/commitdiff
The param 'close_fds' is not allowed on windos for subprocess.popen call,
authorKornel Benko <kornel@lyx.org>
Sun, 30 Dec 2012 10:30:15 +0000 (11:30 +0100)
committerKornel Benko <kornel@lyx.org>
Sun, 30 Dec 2012 10:30:15 +0000 (11:30 +0100)
if there are also redirections to stdin, stdout or stderr.

src/tex2lyx/test/runtests.py

index bfa4c2a2e3f13496f1c45a4f134dd16ca382db6e..9fa28e67e8cd712309462096020f47b626b53efc 100755 (executable)
@@ -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()