Mercurial > repos > greg > gene_family_classifier
changeset 105:8abf3c06e7e1 draft
Uploaded
author | greg |
---|---|
date | Mon, 27 Feb 2017 12:52:58 -0500 |
parents | c21d3f7b11a4 |
children | a2a3593a42d4 |
files | gene_family_classifier.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gene_family_classifier.py Mon Feb 27 11:18:49 2017 -0500 +++ b/gene_family_classifier.py Mon Feb 27 12:52:58 2017 -0500 @@ -85,10 +85,10 @@ def write_html_output(output, title, dir): fh = open(output, 'wb') - fh.write('<html>\n<head><title>%s</title>\n</head>\n<body>\n<p/>\n<ul>\n' % str(title)) - for fname in dir: - fh.write('<li><a href="%s">%s</a></li>\n' % (fname, fname)) - fh.write('</ul>\n</body>\n</html>\n') + fh.write('<html><head><title>%s</title></head><body><p/><ul>' % str(title)) + for fname in os.listdir(dir): + fh.write('<li><a href="%s">%s</a></li>' % (fname, fname)) + fh.write('</ul></body></html>') fh.close()