pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
198 stars 167 forks source link

Firmware creates and uses main.py/boot.py and not main.mpy/boot.mpy #205

Open martijnthe opened 6 years ago

martijnthe commented 6 years ago

Steps to reproduce:

Expected results:

Actual results:

robert-hh commented 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.

martijnthe commented 6 years ago

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.