Add comment about bootstrapping

This commit is contained in:
Michael Droettboom 2018-09-19 11:34:28 -04:00
parent fcc2b7a036
commit 83fa468df3
1 changed files with 3 additions and 0 deletions

View File

@ -228,6 +228,9 @@ var languagePluginLoader = new Promise((resolve, reject) => {
let script = document.createElement('script');
script.src = `${baseURL}pyodide.asm.js`;
script.onload = () => {
// The emscripten module needs to be at this location for the core
// filesystem to install itself. Once that's complete, it will be replaced
// by the call to `makePublicAPI` with a more limited public API.
window.pyodide = pyodide(Module);
window.pyodide.loadPackage = loadPackage;
};