Frozen Python script reference Python in a different frozen script?

I have a frozen Python script that works great. It’s in the \scripts\libraries\ folder and it’s called out in product-specific manifest. I want it to access data and functions in a different frozen Python script file. Both are in the \scripts\libraries\ folder, and both are called out in the manifest, and the first frozen script tries to import the second file. But when it runs it can’t find and import the other file. It works if I put the second file on either the SD card or the SPI flash, but it doesn’t work when frozen. I’m guessing that the frozen files get compiled before they know of each other. Is there a way to do this? Thanks!

Hi Doug,

Uh… our default scripts literally do this already, and it works…

Here’s openmv/scripts/libraries/st7701.py at master · openmv/openmv

And it’s used by display right here:

openmv/scripts/libraries/display.py at master · openmv/openmv

And then in the example code: openmv/scripts/examples/50-Arduino-Boards/Giga-H7/51-Display/display.py at master · openmv/openmv

Please make sure the custom fork you are working has the right MicroPython version and etc.