Update: Python Online板卡下支持挂载本地文件夹到pyodide

This commit is contained in:
王立帮
2024-11-26 23:09:41 +08:00
parent 5411a188f7
commit b984af1998
18 changed files with 660 additions and 84 deletions

View File

@@ -1,4 +1,4 @@
import { app, Nav } from 'mixly';
import { app, Nav, Debug } from 'mixly';
import * as Blockly from 'blockly/core';
import PythonShell from './python-shell';
@@ -16,7 +16,7 @@ NavExt.init = async function () {
return true;
},
callback: () => {
PythonShell.run();
PythonShell.run().catch(Debug.error);
},
scopeType: Nav.Scope.LEFT,
weight: 4
@@ -31,7 +31,7 @@ NavExt.init = async function () {
return true;
},
callback: () => {
PythonShell.stop();
PythonShell.stop().catch(Debug.error);
},
scopeType: Nav.Scope.LEFT,
weight: 5