Hello,
after having managed to freeze modules and deploy them to a Pyboard, I found, that the frozen module is always used, even when an module with the same name is available on the SD-card.
That poses a slight challenge: In case of improvements or patches the firmware has to be updated, it is not possible to 'patch' a faulty or insufficient module by just supplying the module with the same name on the SD-card.
Is there a solution available?
Thank you very much.
Precedence of frozen bytecode
Precedence of frozen bytecode
Ivo Gorny
Re: Precedence of frozen bytecode
Thanks, Dave!
Lightning fast response, and it works like a charm.
I put this at the start of the main.py:
This reverses the order.
Thanks a lot!
Lightning fast response, and it works like a charm.
I put this at the start of the main.py:
Code: Select all
import sys
sys.path[0]='/sd'
sys.path[1]=''
Thanks a lot!
Ivo Gorny