mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
fix checkTeXPaths when no latex is found
(reallows the install of LyX without MikTeX again under windows) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38142 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9abb85aa72
commit
6826bd487f
@ -96,6 +96,8 @@ def createDirectories():
|
||||
def checkTeXPaths():
|
||||
''' Determine the path-style needed by the TeX engine on Win32 (Cygwin) '''
|
||||
windows_style_tex_paths = ''
|
||||
if LATEX == '':
|
||||
return windows_style_tex_paths
|
||||
if os.name == 'nt' or sys.platform == 'cygwin':
|
||||
from tempfile import mkstemp
|
||||
fd, tmpfname = mkstemp(suffix='.ltx')
|
||||
@ -1340,7 +1342,6 @@ Options:
|
||||
sys.exit(1)
|
||||
setEnviron()
|
||||
createDirectories()
|
||||
windows_style_tex_paths = checkTeXPaths()
|
||||
dtl_tools = checkDTLtools()
|
||||
## Write the first part of outfile
|
||||
writeToFile(outfile, '''# This file has been automatically generated by LyX' lib/configure.py
|
||||
@ -1356,6 +1357,7 @@ Options:
|
||||
checkConverterEntries()
|
||||
(chk_docbook, bool_docbook, docbook_cmd) = checkDocBook()
|
||||
checkTeXAllowSpaces()
|
||||
windows_style_tex_paths = checkTeXPaths()
|
||||
if windows_style_tex_paths != '':
|
||||
addToRC(r'\tex_expects_windows_paths %s' % windows_style_tex_paths)
|
||||
checkOtherEntries()
|
||||
|
Loading…
Reference in New Issue
Block a user