From 246753c6d4607dd146bf70e3535fc61201ac5ddb Mon Sep 17 00:00:00 2001 From: FELD Boris Date: Mon, 24 Jan 2011 23:59:15 +0100 Subject: [PATCH] Remove temporary html files after their utilisation. --- tools/wp2pelican.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/wp2pelican.py b/tools/wp2pelican.py index b00662d3..f4b3988a 100755 --- a/tools/wp2pelican.py +++ b/tools/wp2pelican.py @@ -49,6 +49,8 @@ if __name__ == '__main__': os.system('pandoc --from=html --to=rst -o %s %s' % (rst_filename, html_filename)) + + os.remove(html_filename) with open(rst_filename, 'r', encoding='utf-8') as fs: content = fs.read()