diff options
-rw-r--r-- | metchart/manager.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/metchart/manager.py b/metchart/manager.py index 36cfaa9..a49b75e 100644 --- a/metchart/manager.py +++ b/metchart/manager.py @@ -4,6 +4,8 @@ import yaml import json import os +import importlib + from multiprocessing import cpu_count from multiprocessing.pool import ThreadPool @@ -59,7 +61,7 @@ class Manager: classname = cfg['module'] del cfg['module'] - module = __import__(classname, fromlist=[None]) + module = importlib.import_module(classname) then(key if not anonymous else None, module, cfg) |