597 if fpath.exists(): |
597 if fpath.exists(): |
598 ok = EricMessageBox.yesNo( |
598 ok = EricMessageBox.yesNo( |
599 self, |
599 self, |
600 self.tr("Export Templates"), |
600 self.tr("Export Templates"), |
601 self.tr("""<p>The templates file <b>{0}</b> exists""" |
601 self.tr("""<p>The templates file <b>{0}</b> exists""" |
602 """ already. Overwrite it?</p>""") |
602 """ already. Overwrite it?</p>""").format(fpath)) |
603 .format(str(fpath))) |
|
604 else: |
603 else: |
605 ok = True |
604 ok = True |
606 |
605 |
607 if ok: |
606 if ok: |
608 self.writeTemplates(str(fpath)) |
607 self.writeTemplates(str(fpath)) |