mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-18 14:23:30 +01:00
When creating a .pmlz file, compress the .pml
This commit is contained in:
parent
2288b24137
commit
87e89cb28b
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ def run(self, pmlfile):
|
|||
|
||||
of = self.temporary_file('_plugin_pml2pmlz.pmlz')
|
||||
pmlz = zipfile.ZipFile(of.name, 'w')
|
||||
pmlz.write(pmlfile, os.path.basename(pmlfile))
|
||||
pmlz.write(pmlfile, os.path.basename(pmlfile), zipfile.ZIP_DEFLATED)
|
||||
|
||||
pml_img = os.path.splitext(pmlfile)[0] + '_img'
|
||||
i_img = os.path.join(os.path.dirname(pmlfile),'images')
|
||||
|
|
|
|||
Loading…
Reference in a new issue