Hi, we will be releasing a library feature for OpenMV using OpenMV IDE in the next version.
So, in your home directory will be a library folder (think Arduino). We may also scan a MP library directory too for general purpose MP code.
Anyway, when you click run for your script OpenMV IDE will regex any import statements, and if it sees a module not built-in it will look on the file system for it. If it doesn’t see it it will look in the library dirs first for the module and if it finds it copy it to the required location. It will fallback to a shipped system library directory otherwise and copy those instead. Note that if it sees a change between the library files on the PC and in your code it will update your system.
While this sounds heavy it only has to do this for any custom libraries you use.
We’ll be shipping a MQTT library with the next OpenMV IDE release.