Do not compile coffeescript by default when using calibre-debug -w

This commit is contained in:
Kovid Goyal 2014-02-07 12:03:55 +05:30
parent 538dd9f717
commit 3f3e09d80d

View File

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