]> git.lyx.org Git - features.git/commitdiff
configure.py: Replace 'ltx' by 'log' case insensitively
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 3 May 2012 13:11:10 +0000 (15:11 +0200)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 3 May 2012 14:14:40 +0000 (16:14 +0200)
On windows the temporary filename consists of uppercase characters. This
causes that the extension does not get replaced, and the logfile is left
behind.

Checking the extension case insensitively will correctly remove the
logfile.

lib/configure.py

index e9c83ee27649e9863329199111066b5c03c84858..00cdbdb64ba42f96605a9cd23559fd89589ed05e 100644 (file)
@@ -124,7 +124,7 @@ def checkTeXPaths():
                 inpname = tmpfname.replace('\\', '/')
         else:
             inpname = cmdOutput('cygpath -m ' + tmpfname)
-        logname = os.path.basename(inpname.replace('.ltx', '.log'))
+        logname = os.path.basename(re.sub("(?i).ltx", ".log", inpname))
         inpname = inpname.replace('~', '\\string~')
         os.write(fd, r'\relax')
         os.close(fd)