This commit is contained in:
Kovid Goyal 2010-02-27 12:36:19 -07:00
parent d1d541b410
commit 95f655585b
2 changed files with 5 additions and 1 deletions

View File

@ -102,7 +102,7 @@ def main(args=sys.argv):
main(['calibre']) main(['calibre'])
elif opts.viewer: elif opts.viewer:
from calibre.gui2.viewer.main import main from calibre.gui2.viewer.main import main
vargs = ['ebook-viewer'] vargs = ['ebook-viewer', '--debug-javascript']
if len(args) > 1: if len(args) > 1:
vargs.append(args[-1]) vargs.append(args[-1])
main(vargs) main(vargs)

View File

@ -204,6 +204,10 @@ terminal. For example, you can start the GUI from the terminal as::
calibre-debug -g calibre-debug -g
Similarly, you can start the ebook-viewer as::
calibre-debug -w /path/to/file/to/be/viewed
Executing arbitrary scripts in the calibre python environment Executing arbitrary scripts in the calibre python environment
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^