How to freeze mqtt_as
Hello Peter, Not an issue but just looking for advice as I start on a new project that will use mqtt and touch_gui. In the past I had put your libraries into directory structures such as:
/home/pi/mp_nano_gui
gui/
widgets/ files
fonts/ files
primatives/ files
core/ files
/home/pi/mp_mqtt_as
mqtt_as.py
and then put the likes of freeze("/home/pi/mp_mqtt_as") etc. into the manifest file.
Now I see that mqtt has become a 'package' with what was mqtt_as.py becoming a mqtt_as directory with a __init__.py seeming to contain the code that mqtt_as.py used to have (but of course updated to the latest)
I was thinking that I should perhaps create the mqtt_as directory with just the __init__.py contained therein and point to mqtt_as directory in the manifest or perhaps its ok just to rename the __init__.py to be the good old name of mqtt_as.py, pop that into the mp_mqtt_as directory as per the example above and then put that dir in the manifest as before. But are some of the other .py files now contained in the mqtt_as directory also required? I would not want to freeze the example programs that are now also in this directory
I'm getting a bit lost with this new python package way of going about things and a quick hint on the best way to store the files on my raspberry pi5 for doing my own MP build on the rpi5 would be appreciated.
1 条评论