does mpy take precedence over py?
does mpy take precedence over py?
If you have both a x.py and x.mpy file on /flash or /sd, does the x.mpy file take precedence and get loaded, and the x.py file ignored?
- aivarannamaa
- Posts: 171
- Joined: Fri Sep 22, 2017 3:19 pm
- Location: Estonia
- Contact:
Re: does mpy take precedence over py?
It seems to be vice versa:
https://docs.micropython.org/en/latest/ ... files.html
https://docs.micropython.org/en/latest/ ... files.html
When searching a particular directory foo.py is looked for first and if that is not found then foo.mpy is looked for, then the search continues in the next directory if neither is found. As such, foo.py will take precedence over foo.mpy.
Aivar Annamaa
https://thonny.org
https://thonny.org