From 3f3e09d80d5be6cf346bc5aa26bc80249ee7b730 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 7 Feb 2014 12:03:55 +0530 Subject: [PATCH] Do not compile coffeescript by default when using calibre-debug -w --- src/calibre/debug.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/calibre/debug.py b/src/calibre/debug.py index c481f271e4..e00a5ab950 100644 --- a/src/calibre/debug.py +++ b/src/calibre/debug.py @@ -230,10 +230,7 @@ def main(args=sys.argv): open_local_file(opts.show_gui_debug) elif opts.viewer: from calibre.gui2.viewer.main import main - vargs = ['ebook-viewer', '--debug-javascript'] - if len(args) > 1: - vargs.append(args[-1]) - main(vargs) + main(['ebook-viewer'] + args[1:]) elif opts.py_console: from calibre.utils.pyconsole.main import main main()