bbcmicrobit / micropython

Port of MicroPython for the BBC micro:bit
https://microbit-micropython.readthedocs.io
Other
600 stars 284 forks source link

Can microbit's micropython run mpy files? #524

Open ouki-wang opened 6 years ago

dpgeorge commented 6 years ago

No, not at this point.

RobertLucian commented 6 years ago

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!

dpgeorge commented 6 years ago

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.

pennyarcade commented 3 years ago

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.