Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fw/plugin: Try to load plugin paths as Python module name
WA_PLUGIN_PATHS currently contains a list of filesystem paths to scan for plugins. This is appropriate for end-user plugins, but this is problematic for plugins distributed by a 3rd party, such as a plugin installed from PyPI. In those cases, the path to the sources is unknown and typically depends on the specify Python version, local setup etc. What is constant is Python name of the package, e.g. "lisa.wa.plugins". Extend the input allowed in WA_PLUGIN_PATHS by trying to load entries as a Python package name if: * There is no filesystem path with that name * The entry is a "relative path" (from an fs point of view)
- Loading branch information