This commit is contained in:
Kovid Goyal 2023-02-27 08:13:11 +05:30
parent 21db21b995
commit 78638a28f2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1127,7 +1127,7 @@ class TOCEditor(QDialog): # {{{
tb = None
try:
self.ebook = get_container(self.pathtobook, log=self.log)
except:
except Exception:
import traceback
tb = traceback.format_exc()
if self.working:
@ -1162,6 +1162,15 @@ class TOCEditor(QDialog): # {{{
# }}}
def develop():
from calibre.gui2 import Application
app = Application([])
d = TOCEditor(sys.argv[-1])
d.start()
d.exec()
del app
def main(shm_name=None):
import json
import struct