2 Commits fbcf918ca4 ... f322e66b17

Author SHA1 Message Date
  Nichlas Severinsen f322e66b17 Actual fix for #17 8 months ago
  Nichlas Severinsen fbcf918ca4 Actual fix for #17 8 months ago
1 changed files with 4 additions and 1 deletions
  1. 4 1
      libray/__init__.py

+ 4 - 1
libray/__init__.py

@@ -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