4445 |
4445 |
4446 archive = \ |
4446 archive = \ |
4447 os.path.join(self.ppath, self.pdata["MAINSCRIPT"][0].replace(".py", ".zip")) |
4447 os.path.join(self.ppath, self.pdata["MAINSCRIPT"][0].replace(".py", ".zip")) |
4448 try: |
4448 try: |
4449 try: |
4449 try: |
4450 archiveFile = zipfile.ZipFile(archive, "wb", zipfile.ZIP_DEFLATED) |
4450 archiveFile = zipfile.ZipFile(archive, "w", zipfile.ZIP_DEFLATED) |
4451 except RuntimeError: |
4451 except RuntimeError: |
4452 archiveFile = zipfile.ZipFile(archive, "wb") |
4452 archiveFile = zipfile.ZipFile(archive, "w") |
4453 except IOError as why: |
4453 except IOError as why: |
4454 QMessageBox.critical(None, |
4454 QMessageBox.critical(None, |
4455 self.trUtf8("Create Plugin Archive"), |
4455 self.trUtf8("Create Plugin Archive"), |
4456 self.trUtf8("""<p>The eric5 plugin archive file <b>{0}</b> could """ |
4456 self.trUtf8("""<p>The eric5 plugin archive file <b>{0}</b> could """ |
4457 """not be created.</p>""" |
4457 """not be created.</p>""" |