mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
21db21b995
commit
78638a28f2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user