fix: update command metric-config-gen

This commit is contained in:
BryantHe 2023-08-07 13:51:47 +08:00 committed by Bryant He
parent 2c58ffd698
commit 68b8eb6c3b
2 changed files with 4 additions and 1 deletions

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]

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',