mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
configure.py: Replace 'ltx' by 'log' case insensitively
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.
This commit is contained in:
parent
af5ecd1c8d
commit
a02bfeebc5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user