changeset 3:1368be6c3b70

fix self.help_file
author k0s <k0scist@gmail.com>
date Thu, 17 Sep 2009 21:23:15 -0400
parents c5897e1d06e1
children 60cfc4b825f0
files bitsyblog/bitsyblog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitsyblog/bitsyblog.py	Sun Sep 13 17:04:03 2009 -0400
+++ b/bitsyblog/bitsyblog.py	Thu Sep 17 21:23:15 2009 -0400
@@ -68,7 +68,7 @@
         self.blog = FileBlog(self.file_dir)
         self.cooker = self.restructuredText
 
-        if hasattr(self, 'help_file') and os.path.exists(self.help_file):
+        if self.help_file and os.path.exists(self.help_file):
             help = file(self.help_file).read()
             self.help = docutils.core.publish_string(help,
                                                      writer_name='html',