Get calibre-debug -w working again

This commit is contained in:
Kovid Goyal 2019-08-06 08:48:48 +05:30
parent bb03370e5a
commit 8b8bec6e6a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -271,7 +271,7 @@ def main(args=sys.argv):
run_debug_gui(opts.gui_debug)
elif opts.viewer:
from calibre.gui_launch import ebook_viewer
ebook_viewer(['ebook-viewer', '--debug-javascript'] + args[1:])
ebook_viewer(['ebook-viewer'] + args[1:])
elif opts.command:
sys.argv = args
exec(opts.command)