Clean up some files that LaTeX2HTML drops in the HTML output directory

sometimes.
This commit is contained in:
Fred Drake 2003-01-17 21:25:04 +00:00
parent 8b19a93b87
commit 376f0ef30c
1 changed files with 5 additions and 0 deletions

View File

@ -443,6 +443,11 @@ class Job:
self.run("%s %s *.html" % (PERL_BINARY, NODE2LABEL_SCRIPT)) self.run("%s %s *.html" % (PERL_BINARY, NODE2LABEL_SCRIPT))
finally: finally:
os.chdir(pwd) os.chdir(pwd)
# These files need to be cleaned up here since builddir there
# can be more than one, so we clean each of them.
if self.options.discard_temps:
for fn in ("images.tex", "images.log", "images.aux"):
safe_unlink(os.path.join(builddir, fn))
def build_text(self, tempdir=None): def build_text(self, tempdir=None):
if tempdir is None: if tempdir is None: