Update: 优化Python Online板卡下「本地文件系统」

This commit is contained in:
王立帮
2024-11-27 03:08:43 +08:00
parent b984af1998
commit e0534d607d
9 changed files with 205 additions and 31 deletions

View File

@@ -37,8 +37,6 @@ export default class PythonShell {
const $content = footerBar.getContent();
$content.after(this.$loader);
this.statusBarImage = StatusBarImage.init();
this.statusBarFileSystem = StatusBarFileSystem.init();
const projectPath = path.relative(Env.indexDirPath, Env.boardDirPath);
const loader = new KernelLoader({
rootPath: path.join(projectPath, 'deps'),
@@ -61,6 +59,8 @@ 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 () {