Initial parallelization attempt
This commit is contained in:
parent
12c05afa57
commit
35e49044f1
10 changed files with 321 additions and 143 deletions
|
|
@ -24,12 +24,10 @@
|
|||
# This script is not included in the release of libray.
|
||||
|
||||
import pkgutil
|
||||
import importlib
|
||||
|
||||
__all__ = []
|
||||
for loader, module_name, is_pkg in pkgutil.walk_packages(__path__):
|
||||
__all__.append(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)
|
||||
_module = importlib.import_module(f'.{module_name}', __name__)
|
||||
globals()[module_name] = _module
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue