Subject: |
RE: Zenoss Core 6.3.2 ZenPack install with service and external dependency |
Author: |
Laurent Hemeryck |
Posted: |
2022-02-18 02:10 |
Hello Matt,
You don't have to "install" the library. Just see the ZenPack as its own environment. You can copy the library within the lib folder.
When you need to call this library from one of your Python modules, just import it as this:
from ZenPacks.community.MyZenPack.lib.mylibrary import myfunction
You can find an example here:
https://github.com/Hemie143/ZenPacks.community.ActiveMQ
Cheers,
Laurent
------------------------------
Laurent Hemeryck
Monitoring Engineer
FedNot
------------------------------