Open martijnthe opened 6 years ago
That seems intentional and is hardcoded. You could try to add these lines to boot.py:
from machine import main
main("main.mpy")
Is then at least main.mpy executed? Obviously, you could give your file also a different name.
As a work-around, I ended up having single import main_alt
/ import boot_alt
lines in the main.py
/boot.py
and that would just import the main_alt.mpy
and boot_alt.mpy
.
Steps to reproduce:
mpy-cross
to create amain.mpy
andboot.mpy
and load them onto an empty device's filesystem into/flash/main.mpy
.Expected results:
main.mpy
andboot.mpy
to be executed, but they are not being executed.Actual results:
main.py
andboot.py
are being created upon boot and used instead of the.mpy
files. Usingos.listdir()
one can see the.py
files have been created, alongside the.mpy
ones...