From 29ad0ee7df264e3a0ebdee6e96b48c9ea5f9f5a2 Mon Sep 17 00:00:00 2001 From: dianjixz <18637716021@163.com> Date: Wed, 15 Jan 2025 11:36:59 +0800 Subject: [PATCH] [fix] static_lib version auto update --- projects/llm_framework/SConstruct | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/llm_framework/SConstruct b/projects/llm_framework/SConstruct index df795bd..5d014ef 100644 --- a/projects/llm_framework/SConstruct +++ b/projects/llm_framework/SConstruct @@ -26,4 +26,6 @@ if update: exec(f.read()) down_url = "https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/linux/llm/static_lib_{}.tar.gz".format(version) down_path = check_wget_down(down_url, "static_lib_{}.tar.gz".format(version)) + if os.path.exists(static_lib): + shutil.rmtree(static_lib) shutil.move(down_path, static_lib)