mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make embedded compiler behave more like external one
This commit is contained in:
parent
055c2a9f2f
commit
ff8965d510
Binary file not shown.
@ -144,6 +144,8 @@ document.title = 'compiler initialized';
|
||||
self.errors = []
|
||||
self.working = True
|
||||
options['basedir'] = '__stdlib__'
|
||||
options['write_name'] = True
|
||||
options['keep_docstrings'] = False
|
||||
src = 'var js = window.compiler.compile({}, {}); [js, window.write_cache]'.format(*map(json.dumps, (src, options)))
|
||||
self.runJavaScript(src, QWebEngineScript.ApplicationWorld, self.compilation_done)
|
||||
while self.working:
|
||||
|
Loading…
x
Reference in New Issue
Block a user