Fix #5596 (epub to mobi fail)

This commit is contained in:
Kovid Goyal 2010-05-28 13:16:28 -06:00
parent 8d8e40fed5
commit 678e3a871c

View File

@ -117,7 +117,7 @@ class EPUBInput(InputFormatPlugin):
encfile = os.path.abspath(os.path.join('META-INF', 'encryption.xml')) encfile = os.path.abspath(os.path.join('META-INF', 'encryption.xml'))
opf = None opf = None
for f in walk(u'.'): for f in walk(u'.'):
if f.lower().endswith('.opf'): if f.lower().endswith('.opf') and '__MACOSX' not in f:
opf = os.path.abspath(f) opf = os.path.abspath(f)
break break
path = getattr(stream, 'name', 'stream') path = getattr(stream, 'name', 'stream')