|
@@ -28,5 +28,8 @@ import pkgutil
|
|
|
__all__ = []
|
|
|
for loader, module_name, is_pkg in pkgutil.walk_packages(__path__):
|
|
|
__all__.append(module_name)
|
|
|
- _module = loader.find_module(module_name).load_module(module_name)
|
|
|
+ try:
|
|
|
+ _module = loader.find_module(module_name).load_module(module_name)
|
|
|
+ except AttributeError:
|
|
|
+ _module = loader.find_spec(module_name).loader.load_module(module_name)
|
|
|
globals()[module_name] = _module
|