diff --git a/boards/default_src/python_pyodide/others/python-shell.js b/boards/default_src/python_pyodide/others/python-shell.js index 42610961..9d5b137d 100644 --- a/boards/default_src/python_pyodide/others/python-shell.js +++ b/boards/default_src/python_pyodide/others/python-shell.js @@ -52,6 +52,8 @@ export default class PythonShell { this.loader = loader; this.kernel = kernel; + this.statusBarImage = StatusBarImage.init(); + this.statusBarFileSystem = StatusBarFileSystem.init(); this.pythonShell = new PythonShell(); this.pyodide = window.pyodide; this.interruptBuffer = new Uint8Array(new ArrayBuffer(1)); @@ -59,8 +61,6 @@ export default class PythonShell { this.kernelLoaded = true; this.$loader.remove(); this.$loader = null; - this.statusBarImage = StatusBarImage.init(); - this.statusBarFileSystem = StatusBarFileSystem.init(); } this.run = async function () {