完善python逻辑

main
zhouzhuo 2025-08-07 18:45:39 +08:00
parent 2c8fb1bdae
commit e8fbe8cf5a
1 changed files with 4 additions and 0 deletions

View File

@ -274,6 +274,10 @@ def copy_file_to_unity():
if os.path.exists(uiraw_path):
# 删除目录中的所有内容
for item in os.listdir(uiraw_path):
# 如果是name_font文件夹跳过不删除
if item == "name_font":
continue
item_path = os.path.join(uiraw_path, item)
if os.path.islink(item_path):
# 如果是符号链接,直接删除