1
0
mirror of https://github.com/pyscript/pyscript.git synced 2022-05-01 19:47:48 +03:00

Ensure env is created before executing scripts

This commit is contained in:
Philipp Rudiger
2022-04-08 18:51:10 +02:00
parent 9d64a9f126
commit 60232bf91b
3 changed files with 38 additions and 45 deletions

View File

@@ -22,7 +22,7 @@
iconSize = 2;
}
const initializePyodide = () =>{
const initializePyodide = async () =>{
// @ts-ignore
pyodideReadyPromise = loadInterpreter();
// @ts-ignore
@@ -44,7 +44,7 @@
// now we call all initializers before we actually executed all page scripts
for (let initializer of $initializers){
initializer();
await initializer();
}
// now we can actually execute the page scripts if we are in play mode