]> git.lyx.org Git - features.git/commitdiff
Fix bug #6873: Shell execution of \nonstopmode tried when no latex binary present
authorEnrico Forestieri <forenr@lyx.org>
Mon, 30 Aug 2010 15:02:36 +0000 (15:02 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 30 Aug 2010 15:02:36 +0000 (15:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35236 a592a061-630c-0410-9148-cb99ea01b6c8

lib/configure.py

index f26c4f885b9f2b8ca5c48cd44d9262ae1fe4144e..bf36fb7c95d5c2955c40516632bd15e8f386751b 100644 (file)
@@ -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'