There is a common usage of dynamic import in __init__.py files to import every module inside a package dynamically.
Tools like PyInstaller cannot find dependencies of dynamically loaded modules.
The usage of dynamic imports is not justified since it is not made conditionally.
We should decrease its usage as a practice and standardize the way kube-hunter is built with PyInstaller (e.g, supply it with dependencies dynamically using external wrapper).
There is a common usage of dynamic import in
__init__.py
files to import every module inside a package dynamically. Tools like PyInstaller cannot find dependencies of dynamically loaded modules. The usage of dynamic imports is not justified since it is not made conditionally. We should decrease its usage as a practice and standardize the way kube-hunter is built with PyInstaller (e.g, supply it with dependencies dynamically using external wrapper).