Skip to content

Commit

Permalink
Import host_submodules explicitly.
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan committed Jun 10, 2024
1 parent 5dabdac commit 0ce75f4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mreg_cli/commands/host_submodules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

0 comments on commit 0ce75f4

Please sign in to comment.