Properly fix #581

This commit is contained in:
Kovid Goyal 2008-03-29 20:10:11 +00:00
parent 457f622447
commit 1e680d7fda

View File

@ -184,7 +184,7 @@ class MobiReader(object):
manifest = [(htmlfile, 'text/x-oeb1-document')]
bp = os.path.dirname(htmlfile)
for i in self.image_names:
manifest.append((os.path.join(bp,'images/',i), 'image/jpg'))
manifest.append((os.path.join(bp, 'images/', i), 'image/jpg'))
opf.create_manifest(manifest)
opf.create_spine([os.path.basename(htmlfile)])