fix: update command metric-config-gen

This commit is contained in:
Bryant authored and Bryant He committed 2023-08-07 13:52:35 +08:00
1 parent 2c58ffd698
commit 68b8eb6c3b
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -324,6 +324,9 @@ def metric_config_gen(module, class_name_str):
import sys
from statsd.client.timer import Timer
sys.path.append(os.getcwd())
for root, dirs, files in os.walk(os.getcwd()):
for _dir in dirs:
sys.path.append(os.path.join(root, _dir))
# Extract information of statsd config from the class of nameko service
file_name = module.split('.')[-1]
+1 -1
View File
@@ -9,7 +9,7 @@ with open(path.join(here, 'README.md'), encoding='utf-8') as f:
setup(
name='namekoplus',
version='0.4.8',
version='0.4.9',
description='A lightweight Python distributed microservice solution',
long_description=long_description,
long_description_content_type='text/markdown',