def gui_ebook_edit(path=None, notify=None):
 init_dbus()
 from calibre.gui2.tweak_book.main import gui_main
 gui_main(path, notify)

def gui_ebook_edit ( path = None , notify = None ) : init_dbus ( ) from calibre . gui2 . tweak_book . main import gui_main gui_main ( path , notify )
for launching the editor from inside calibre .