Make embedded compiler behave more like external one

This commit is contained in:
Kovid Goyal 2019-06-27 05:49:33 +05:30
parent 055c2a9f2f
commit ff8965d510
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View File

@ -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: