diff --git a/src/python/jw/pkg/cmds/distro/Makefile b/src/python/jw/pkg/cmds/distro/Makefile index 7a83c333..f342bd8e 100644 --- a/src/python/jw/pkg/cmds/distro/Makefile +++ b/src/python/jw/pkg/cmds/distro/Makefile @@ -1,4 +1,5 @@ TOPDIR = ../../../../../.. +PY_UPDATE_INIT_PY = false include $(TOPDIR)/make/proj.mk include $(JWBDIR)/make/py-mod.mk diff --git a/src/python/jw/pkg/cmds/distro/__init__.py b/src/python/jw/pkg/cmds/distro/__init__.py new file mode 100644 index 00000000..7837b8d7 --- /dev/null +++ b/src/python/jw/pkg/cmds/distro/__init__.py @@ -0,0 +1,11 @@ +import importlib, pkgutil + +__all__ = [] + +for finder, module_name, ispkg in pkgutil.iter_modules(__path__): + if not module_name.startswith("Cmd"): + continue + module = importlib.import_module(f".{module_name}", __name__) + cls = getattr(module, module_name) + globals()[module_name] = cls + __all__.append(module_name)