This commit is contained in:
Kovid Goyal 2015-01-22 22:35:50 +05:30
parent 9ab23594ee
commit fa04ef7ffc

View File

@ -1053,10 +1053,11 @@ class Reports(Dialog):
if __name__ == '__main__': if __name__ == '__main__':
from calibre.gui2 import Application from calibre.gui2 import Application
import sys
app = Application([]) app = Application([])
from calibre.gui2.tweak_book import set_current_container from calibre.gui2.tweak_book import set_current_container
from calibre.gui2.tweak_book.boss import get_container from calibre.gui2.tweak_book.boss import get_container
set_current_container(get_container('/t/demo.epub')) set_current_container(get_container(sys.argv[-1]))
d = Reports() d = Reports()
d.refresh() d.refresh()
d.exec_() d.exec_()