From 0ce75f4d9180e6e468711a33827f28d898bd342f Mon Sep 17 00:00:00 2001 From: pederhan Date: Mon, 10 Jun 2024 15:28:00 +0200 Subject: [PATCH] Import host_submodules explicitly. --- mreg_cli/commands/host_submodules/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/mreg_cli/commands/host_submodules/__init__.py b/mreg_cli/commands/host_submodules/__init__.py index a75693c8..8df39cfd 100644 --- a/mreg_cli/commands/host_submodules/__init__.py +++ b/mreg_cli/commands/host_submodules/__init__.py @@ -11,3 +11,16 @@ Note: This design will imply circular imports, so the core host command imports the submodules after it has been initialized. """ + +# We have to import each of the submodules explictly here in order to +# ensure they are included when we build binaries with PyInstaller. +# We also cannot do `from . import *`. Each module must be specified. +from . import a_aaaa, bacnet, cname, core, rr + +__all__ = [ + "a_aaaa", + "bacnet", + "cname", + "core", + "rr", +]