Description
Description
The new ROMFS feature allows users to deploy their application with all necessary resources as a package. This is hugely valuable. However, while ROMFS partitions can contain code, they are not actively searched by default for code. I'd like to suggest that ROMFS partition(s) are searched whenever before/after frozen scripts.
E.g. pyexec_file_if_exists() searches frozen scripts first before the current path. Searching ROMFS should be added in between. When used from main.c to run "boot.py" and "main.py" this would ensure that the ROMS partition is considered and executed first.
Similarly, when searching for an import, before searching for frozen scripts, ROMFS is also interrogated.
...
Generally, the goal here is one where you can put your whole application on ROMFS and then /flash or /sdcard don't matter except for storing logs or config files.
Code Size
This can be an optional feature.
Implementation
I hope the MicroPython maintainers or community will implement this feature
Code of Conduct
Yes, I agree