View Single Post
Old 10-18-2019, 09:04 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,418
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
QJSEngine is not used by calibre. So there is no reason to include the PyQt module, it just wastes space. If you want to run JS from python use QWebEnginePage, see rapyscript.py for an example of doing this. Note that you cannot use QWebEngine in the main calibre process because it needs to be imported before QApplication is constructed, so you will need to fork a worker process to do it.
kovidgoyal is online now   Reply With Quote