]> git.lyx.org Git - lyx.git/commitdiff
Fix to the fix for bug 2418. The commands python module is a *nix only
authorEnrico Forestieri <forenr@lyx.org>
Wed, 7 Feb 2007 20:15:41 +0000 (20:15 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 7 Feb 2007 20:15:41 +0000 (20:15 +0000)
thing and it worked on Win32 only by chance.

* lib/configure.py:
Correctly collect stderr also on Win32.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17095 a592a061-630c-0410-9148-cb99ea01b6c8

lib/configure.py

index f07089a17d60eba3598ffa24c6168c3d99c86bf9..f082922a631500be6b36d3aabf93afc98b9f2726 100644 (file)
@@ -8,7 +8,7 @@
 # \author Bo Peng
 # Full author contact details are available in file CREDITS.
 
-import sys, os, re, shutil, glob, commands
+import sys, os, re, shutil, glob
 
 
 class Tee:
@@ -410,7 +410,7 @@ def checkConverterEntries():
     if convert != '':
         # check whether convert supports the -define option
         conv_opts = "-define pdf:use-cropbox=true -depth 8"
-        if not 'Unrecognized' in commands.getoutput('convert ' + conv_opts):
+        if not 'Unrecognized' in cmdOutput('convert ' + conv_opts + ' 2>&1'):
             addToRC(r'\converter pdf        png        "convert %s pdf:$$i png:$$o"    ""' % conv_opts)
     #
     checkProg('a Grace -> Image converter', ['gracebat'],