Closed pederhan closed 4 months ago
If we first list them manually, we can also do that during the original usage. But, this works. :)
Sure, but then it becomes a bit harder to ensure we actually import all the submodules as opposed to checking __all__
in a unit test.
I will merge this for now, then we can look to improve it down the line.
This PR fixes the built PyInstaller binaries not including the
host_submodules
commands.Currently we get this:
This happens because even though PyInstaller follows the
mreg_cli.commands.host_submodules
import, it cannot infer that it should import every module in thehost_submodules
namespace unless we explicitly perform an import of them in__init__.py
.