From 58b337bf77eee5c94525f513fbe6da0057942c9e Mon Sep 17 00:00:00 2001 From: jazzynico Date: Fri, 9 Jan 2015 16:37:32 +0100 Subject: [PATCH] OB-148: Fixing templated HTML export error. --- lib/objavi/fmbook.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/objavi/fmbook.py b/lib/objavi/fmbook.py index d67c700..cc65707 100644 --- a/lib/objavi/fmbook.py +++ b/lib/objavi/fmbook.py @@ -318,7 +318,7 @@ def filepath(self, fn): def save_tempfile(self, fn, data): """Save the data in a temporary directory that will be cleaned up when all is done. Return the absolute file path.""" - fn = self.filepath(fn) + #fn = self.filepath(fn) save_data(fn, data) return fn @@ -539,7 +539,8 @@ def make_templated_html(self, template=None, index=config.TEMPLATING_INDEX_FIRST """Make a templated html version of the book.""" #set up the directory and static files self.unpack_static() - destdir = self.filepath(os.path.basename(self.publish_file)) + #destdir = self.filepath(os.path.basename(self.publish_file)) + destdir = self.publish_file os.mkdir(destdir) src = self.filepath('static')