完善python逻辑
							parent
							
								
									2c8fb1bdae
								
							
						
					
					
						commit
						e8fbe8cf5a
					
				| 
						 | 
					@ -274,6 +274,10 @@ def copy_file_to_unity():
 | 
				
			||||||
        if os.path.exists(uiraw_path):
 | 
					        if os.path.exists(uiraw_path):
 | 
				
			||||||
            # 删除目录中的所有内容
 | 
					            # 删除目录中的所有内容
 | 
				
			||||||
            for item in os.listdir(uiraw_path):
 | 
					            for item in os.listdir(uiraw_path):
 | 
				
			||||||
 | 
					                # 如果是name_font文件夹,跳过不删除
 | 
				
			||||||
 | 
					                if item == "name_font":
 | 
				
			||||||
 | 
					                    continue
 | 
				
			||||||
 | 
					                    
 | 
				
			||||||
                item_path = os.path.join(uiraw_path, item)
 | 
					                item_path = os.path.join(uiraw_path, item)
 | 
				
			||||||
                if os.path.islink(item_path):
 | 
					                if os.path.islink(item_path):
 | 
				
			||||||
                    # 如果是符号链接,直接删除
 | 
					                    # 如果是符号链接,直接删除
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue