xenanetworks / open-automation-core

🚀 XOA framework for test execution, tester management, and data subscription.
https://docs.xenanetworks.com/projects/xoa-core
Apache License 2.0
2 stars 0 forks source link

Check if plugin path if is already added #33

Closed fpfeng closed 1 year ago

fpfeng commented 1 year ago

https://github.com/xenanetworks/open-automation-core/blob/1c94fe1f89e968648a73fad400e4c5bef0d939c6/xoa_core/controller.py#L48 register_lib should check if it is already added the path to avoid loading module multiple times.

MaureenChan commented 1 year ago

图片 图片 This blocks code will not work if add a relative path because you always add a absolute path in self.__paths

ArtemConstantinov commented 1 year ago

Apply fix for v1 and v2