mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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
This commit is contained in:
parent
9e45d81441
commit
ac33a77dac
@ -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 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 = ''
|
||||
if 'working' in latex_out:
|
||||
logger.info(msg + 'yes')
|
||||
tex_allows_spaces = 'true'
|
||||
|
Loading…
Reference in New Issue
Block a user