micropython
micropython copied to clipboard
Can microbit's micropython run mpy files?
No, not at this point.
I know you @dpgeorge already answered to @ouki-wang 's question, but what about now, after 2 years have passed?
I precompiled a test python script using the version of micropython specified in here (I used the specified git hash) and then when I try to import it within the microbit I get an error telling me the module doesn't exist. Is it possible that I'm doing something wrong?
Thanks!
For hints on getting it to load mpy files, see this comment: https://github.com/bbcmicrobit/micropython/issues/555#issuecomment-419351214
Hopefully this feature will make it into the main code soon.
Any news on this after another 2 years? ;-)
Reviewing the comment this seems a rather small code change and I feel this could be the default behaviour.