Loading mpy files at runtime?
Loading mpy files at runtime?
I would like to know where to put the mpy files so that I can create libraries without needing to rebuild mp? I'm currently trying to do this with the Minimal build. Are there any changes I need to make to mpconfigport?
Re: Loading mpy files at runtime?
Normally they would be imported from the filesystem. `import foo` will first try foo.py, then foo.mpy.
Note that the minimal port has no filesystem. It only supports loading frozen code (but without the full manifest support).
Re: Loading mpy files at runtime?
Thank you, that helped a lot. I decided to use the Unix build instead since the target is an embedded linux system with both a filesystem and plenty of memory resources.