Skip to content

Show only the examples, main.py and an empty lib/ in a fresh simulator - #19

Merged
bdbarnett merged 1 commit into
mainfrom
fix/files-17
Oct 27, 2026
Merged

bdbarnett merged 1 commit into
mainfrom
fix/files-17

Conversation

@bdbarnett

Copy link
Copy Markdown

A fresh simulator listed the runtime's dev/, home/web_user/, proc/ and tmp/ and a lib/machine.py next to the examples. Those folders stay on the device (the interpreter uses them) but the File Manager no longer lists them for the simulator; real boards are untouched. The machine.py shim moves from lib/ to a hidden /.shim folder that is still on sys.path, so import machine works as before and lib/ starts empty.

New browser test lists the file tree of a fresh simulator and checks /tmp and machine.reset still work. It fails before this change and passes after.

Fixes #17

The runtime's own folders (dev, home, proc, tmp) stay on the device but are
no longer listed in the File Manager. machine.py moves out of lib/ into a
hidden folder that is still on sys.path.

Fixes #17
@bdbarnett
bdbarnett merged commit 94a8f6d into main Oct 27, 2026
1 check passed
@bdbarnett
bdbarnett deleted the fix/files-17 branch October 27, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Simulator boots with upstream files you don't need in its file tree

1 participant