From fa04ef7ffc1d2cefdcc8e042941a16f98fdf8c83 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 22 Jan 2015 22:35:50 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tweak_book/reports.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/reports.py b/src/calibre/gui2/tweak_book/reports.py index e1fb8b920e..68e685cccb 100644 --- a/src/calibre/gui2/tweak_book/reports.py +++ b/src/calibre/gui2/tweak_book/reports.py @@ -1053,10 +1053,11 @@ class Reports(Dialog): if __name__ == '__main__': from calibre.gui2 import Application + import sys app = Application([]) from calibre.gui2.tweak_book import set_current_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.refresh() d.exec_()