From d2025c628e07fa7992bc32b6e99d1a71d9efc67c Mon Sep 17 00:00:00 2001 From: BryantHe Date: Thu, 27 Jul 2023 16:04:57 +0800 Subject: [PATCH] debug 2 --- namekoplus/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/namekoplus/command.py b/namekoplus/command.py index 1832bae..88399ea 100644 --- a/namekoplus/command.py +++ b/namekoplus/command.py @@ -322,7 +322,7 @@ def metric_config_gen(module, class_name_str): # Extract information of statsd config from the class of nameko service dest_dir = module.split('.')[0] file_name = module.split('.')[-1] - _module = importlib.import_module(module) + _module = importlib.import_module(name='.'+file_name, package=dest_dir) config_list = [] for class_name in class_name_str.split(','): members = inspect.getmembers(getattr(getattr(_module, file_name), class_name), predicate=inspect.isfunction)