Mercurial > piecrust2
changeset 490:4a9047850657
cm: Fix benchmark website generation on Windows.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 22 Jul 2015 22:20:35 -0700 |
parents | 186a29f61ddc |
children | 152a15046b41 |
files | util/generate_benchsite.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/util/generate_benchsite.py Wed Jul 22 21:33:15 2015 -0700 +++ b/util/generate_benchsite.py Wed Jul 22 22:20:35 2015 -0700 @@ -149,9 +149,9 @@ def writePost(self, post_info): out_dir = os.path.join(self.out_dir, 'content', 'post') - dtstr = post_info['datetime'].strftime('%Y-%m-%d_%H-%M-%S-00:00') - with open('%s/%s.md' % (out_dir, dtstr), 'w', - encoding='utf8') as f: + dtstr = post_info['datetime'].strftime('%Y-%m-%d_%H-%M-%S') + post_path = os.path.join(out_dir, '%s.md' % dtstr) + with open(post_path, 'w', encoding='utf8') as f: f.write('+++\n') f.write('title = "%s"\n' % post_info['title']) f.write('description = "%s"\n' % post_info['description'])