From a875b9d4ff6b5c8492f38ea87f8e11c02ebe66b9 Mon Sep 17 00:00:00 2001 From: MatthewLi Date: Fri, 9 Dec 2016 03:31:28 -0500 Subject: [dovetail tool]: move config info from .py to config .yml file JIRA: DOVETAIL-145 Change-Id: Ia9b3c678f1a491e5daf2d280f05904ead3b0a296 Signed-off-by: MatthewLi --- dovetail/utils/dovetail_logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dovetail/utils/dovetail_logger.py') diff --git a/dovetail/utils/dovetail_logger.py b/dovetail/utils/dovetail_logger.py index 8afa08a1..bb09a7b1 100644 --- a/dovetail/utils/dovetail_logger.py +++ b/dovetail/utils/dovetail_logger.py @@ -24,7 +24,7 @@ import logging import os -from conf.dovetail_config import DovetailConfig as dt_config +from conf.dovetail_config import DovetailConfig as dt_cfg class Logger: @@ -46,7 +46,7 @@ class Logger: ch.setLevel(logging.INFO) self.logger.addHandler(ch) - result_path = dt_config.dovetail_config['result_dir'] + result_path = dt_cfg.dovetail_config['result_dir'] if not os.path.exists(result_path): os.makedirs(result_path) hdlr = logging.FileHandler(os.path.join(result_path, 'dovetail.log')) -- cgit 1.2.3-korg