From efc3b4e52a46f5e9d233ef698c99a9caf1d1d39c Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Tue, 4 Jul 2006 13:55:28 +0000 Subject: [PATCH] lib/configure.py: fix checkTeXAllowSpaces, by Enrico git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14336 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/configure.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/configure.py b/lib/configure.py index cf4ee79588..2aea8c017a 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -640,8 +640,12 @@ def checkTeXAllowSpaces(): tex_allows_spaces = 'false' if lyx_check_config: print "Checking whether TeX allows spaces in file names... ", - writeToFile('a b.tex', r'\nonstopmode\message{working^^J}' ) - if ''.join(cmdOutput(LATEX + ' "a b"')).find('working') != -1: + writeToFile('a b.tex', r'\message{working^^J}' ) + if os.name == 'nt': + latex_out = cmdOutput(LATEX + r""" "\nonstopmode\input{\"a b\"}" """) + else: + latex_out = cmdOutput(LATEX + r""" '\nonstopmode\input{"a b"}' """) + if 'working' in latex_out: print 'yes' tex_allows_spaces = 'true' else: