changeset 111:5f77ac9fbb46 draft

Uploaded
author greg
date Mon, 27 Feb 2017 14:44:47 -0500
parents 6cb3520313b9
children 9e688af74aae
files gene_family_classifier.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gene_family_classifier.py	Mon Feb 27 14:38:23 2017 -0500
+++ b/gene_family_classifier.py	Mon Feb 27 14:44:47 2017 -0500
@@ -86,11 +86,11 @@
 def write_html_output(output, title, dir):
     with open(output, 'w') as fh:
         fh.write('<html><head><title>%s</title></head>\n' % title)
-        fh.write('<body><p/><table>\n')
+        fh.write('<body><p/><table cellpadding="5" cellspacing="5">\n')
         fh.write('<tr><th>Size</th><th>Name</th></tr>\n')
         for fname in os.listdir(dir):
             try:
-                size = str(os.path.getsize(fname))
+                size = str(os.path.getsize(os.path.join(dir, fname)))
             except:
                 size = 'unknown'
             link = '<a href="%s" type="text/plain">%s</a>\n' % (fname, fname)