diff --git a/centos/repoclone/repoclone.py b/centos/repoclone/repoclone.py index 6e39f13..b2adf86 100755 --- a/centos/repoclone/repoclone.py +++ b/centos/repoclone/repoclone.py @@ -24,10 +24,10 @@ _logmodpath = os.path.abspath(os.path.join(_selfpath, 'lib', 'python', 'logger.py')) -logger = importlib.util.module_from_spec( - importlib.util.spec_from_file_location( - 'logger', - _logmodpath)) +log_spec = importlib.util.spec_from_file_location('logger', _logmodpath) +logger = importlib.util.module_from_spec(log_spec) +log_spec.loader.exec_module(logger) + _loglevel = 'warning' #_loglevel = 'debug'