When creating a .pmlz file, compress the .pml

This commit is contained in:
Carl Witty 2010-05-10 10:13:10 -07:00
parent 2288b24137
commit 87e89cb28b

View File

@ -68,7 +68,7 @@ class PML2PMLZ(FileTypePlugin):
of = self.temporary_file('_plugin_pml2pmlz.pmlz') of = self.temporary_file('_plugin_pml2pmlz.pmlz')
pmlz = zipfile.ZipFile(of.name, 'w') 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' pml_img = os.path.splitext(pmlfile)[0] + '_img'
i_img = os.path.join(os.path.dirname(pmlfile),'images') i_img = os.path.join(os.path.dirname(pmlfile),'images')