Skip to content

Commit 29ad0ee

Browse files
committed
[fix] static_lib version auto update
1 parent 8a4e7e0 commit 29ad0ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

projects/llm_framework/SConstruct

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ if update:
2626
exec(f.read())
2727
down_url = "https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/linux/llm/static_lib_{}.tar.gz".format(version)
2828
down_path = check_wget_down(down_url, "static_lib_{}.tar.gz".format(version))
29+
if os.path.exists(static_lib):
30+
shutil.rmtree(static_lib)
2931
shutil.move(down_path, static_lib)

0 commit comments

Comments
 (0)