Thread
:
Error importing mobi files
View Single Post
02-16-2010, 01:27 PM
#
10
kovidgoyal
creator of calibre
Posts: 45,427
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Temporary files are always opened in w+b (write, random access, binary)
Code:
of = self.temporary_file('.mobi') of.write(data) of.close() return of.name
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS