This commit is contained in:
Kovid Goyal 2007-12-11 19:24:13 +00:00
parent ae6e5c3db8
commit 74a12c6598

View File

@ -104,7 +104,7 @@ def process_file(path, options, logger=None):
html_process_file(html, options, logger) html_process_file(html, options, logger)
finally: finally:
os.chdir(cwd) os.chdir(cwd)
if options.keep_intermediate_files: if hasattr(options, 'keep_intermediate_files') and options.keep_intermediate_files:
logger.debug('Intermediate files in '+ tdir) logger.debug('Intermediate files in '+ tdir)
else: else:
shutil.rmtree(tdir) shutil.rmtree(tdir)