From ed7d60ec5813ddee8f96aaa080c21bdc036d405a Mon Sep 17 00:00:00 2001 From: liyl_kl Date: Wed, 28 Feb 2024 14:57:37 +0800 Subject: [PATCH] Improve the init function --- run.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/run.sh b/run.sh index 65d04b1..c443e1b 100644 --- a/run.sh +++ b/run.sh @@ -14,6 +14,17 @@ opt_use_net= # 初始本文件头部定义的变量 function init() { + base_dir=`grep base_path conf/kytuning.yaml |cut -d':' -f 2|sed 's/\"//g'` + run_dir=$base_dir/run + + cur_path=$(cd $(dirname $0); pwd) + tools_path=$cur_path/tools + + if [ ! -d ${tools_path} ]; then + mkdir ${tools_path} + fi + + opt_use_net=0 } # 显示使用帮助 -- Gitee