From 07b98af9973c535a0da7b7a0d3cdc1ae7871434f Mon Sep 17 00:00:00 2001 From: zhanghan2021 Date: Thu, 16 Nov 2023 20:26:47 +0800 Subject: [PATCH] Program initialization and log path settings --- extuner.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/extuner.py b/extuner.py index 2e24a1c..3e28b12 100644 --- a/extuner.py +++ b/extuner.py @@ -3,8 +3,30 @@ # cython:language_level=3 from common.log import Logger +from common.tool_cmd import ToolCmd +from summary_info import SummaryInfo # main function # if __name__=='__main__': def main(): - Logger().info("hello world") \ No newline at end of file + + Timer = { "start": "", "stop": "" } + ret = False + args = ToolCmd().args_help() + func = args.func + + + if args.work_path == '': + work_path = '/usr/share/extuner/' + else: + work_path = args.work_path + + if args.inst_path == '': + inst_path = '/usr/share/extuner/' + else: + inst_path = args.inst_path + + out_path = args.out_path + + SummaryInfo.init(out_path,work_path, inst_path) + Logger().info("Extuner 开始执行") \ No newline at end of file -- Gitee