From d8ee68bcc61ca75d5ddf780838756597bdae7e91 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Thu, 27 Jul 2023 16:43:29 +0800 Subject: [PATCH] debug 5 --- namekoplus/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/namekoplus/command.py b/namekoplus/command.py index c095e12..4ef3384 100644 --- a/namekoplus/command.py +++ b/namekoplus/command.py @@ -319,7 +319,7 @@ def metric_config_gen(module, class_name_str): """ import sys from statsd.client.timer import Timer - sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))))) + sys.path.append('.') click.echo(f'sys.path: {sys.path}') # Extract information of statsd config from the class of nameko service