Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit 418ad34

Browse files
committed
Fixed a bug
Fixed a bug when every single file in /packages/ was loaded in the shell as a package, now only files which name ends with ".brython.js" are loaded.
1 parent 705e7f7 commit 418ad34

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

helper.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ le._apps.py93 = {
4646
if (!$py93.shellGate.ignore) $log('Creating list of packages...')
4747
$py93.shellGate.pkgConts = [];
4848
$fs.utils.getFileMenu('/a/Py93/packages')["foldersList"].forEach((name) => {
49-
$db.getRaw('Py93/packages/'+name, function(_a, file) {
50-
$py93.shellGate.pkgConts.push(file)
51-
})
49+
if (name.endsWith('.brython.js')) {
50+
$db.getRaw('Py93/packages/'+name, function(_a, file) {
51+
$py93.shellGate.pkgConts.push(file)
52+
})
53+
}
5254
})
5355
setTimeout($py93.launchShell, 500)
5456
}

0 commit comments

Comments
 (0)