From ac33a77dac3f13dbebc14a8759bd5b02d6e98bfa Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Mon, 30 Aug 2010 15:02:36 +0000 Subject: [PATCH] Fix bug #6873: Shell execution of \nonstopmode tried when no latex binary present git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35236 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/configure.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/configure.py b/lib/configure.py index f26c4f885b..bf36fb7c95 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -1190,10 +1190,13 @@ def checkTeXAllowSpaces(): if lyx_check_config: msg = "Checking whether TeX allows spaces in file names... " writeToFile('a b.tex', r'\message{working^^J}' ) - if os.name == 'nt': - latex_out = cmdOutput(LATEX + r""" "\nonstopmode\input{\"a b\"}" """) + if LATEX != '': + if os.name == 'nt': + latex_out = cmdOutput(LATEX + r""" "\nonstopmode\input{\"a b\"}" """) + else: + latex_out = cmdOutput(LATEX + r""" '\nonstopmode\input{"a b"}' """) else: - latex_out = cmdOutput(LATEX + r""" '\nonstopmode\input{"a b"}' """) + latex_out = '' if 'working' in latex_out: logger.info(msg + 'yes') tex_allows_spaces = 'true' -- 2.39.2