Deployment
Deploy your Plugins with External Library
VStitcher/Lotta installations come with Python 3.7.8 included.
Install the packages in the plugin folder:
<Browzwear installation folder>/python/bin/python -m pip install <package name> -t <plugin folder>(-t stands for target.)
Within the plugin update the sys.path to include this additional folder before importing the library.
Once this is working on your dev machine and your are sure that the additional libraries loaded from the new target, you are ready to deploy to clients. Send the whole plugin folder to client and then ask the client to add this plugin add this plugin to VS / Lotta from the preferences dialog.
example
For example, this is the plugin folder structure:
| [lib]
|- [requests]
| [src]
|- main.py
| plugin.jsonWithin the plugin (main.py) add 'lib' location to sys.path and only then import 'requests'.