]> git.lyx.org Git - features.git/commitdiff
fix checkTeXPaths when no latex is found
authorJulien Rioux <jrioux@lyx.org>
Wed, 30 Mar 2011 00:26:19 +0000 (00:26 +0000)
committerJulien Rioux <jrioux@lyx.org>
Wed, 30 Mar 2011 00:26:19 +0000 (00:26 +0000)
(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

lib/configure.py

index 24c3832b5fc12142bd517bb8c2fda94d82894c71..6265253cd6e1702943dee3aa4661af3b5ca1fa9b 100644 (file)
@@ -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()