fixbug
parent
c11b43b205
commit
d316eb987d
|
|
@ -3,7 +3,7 @@ Author: SpenserCai
|
|||
Date: 2023-08-23 23:12:27
|
||||
version:
|
||||
LastEditors: SpenserCai
|
||||
LastEditTime: 2023-09-24 22:37:16
|
||||
LastEditTime: 2023-10-08 12:43:57
|
||||
Description: file content
|
||||
'''
|
||||
import os
|
||||
|
|
@ -68,6 +68,12 @@ def download_bin():
|
|||
# 如果bin目录下存在location目录,删除
|
||||
if os.path.isdir(os.path.join(bin_path, "location")):
|
||||
shutil.rmtree(os.path.join(bin_path, "location"))
|
||||
# 如果bin目录下存在website目录,删除
|
||||
if os.path.isdir(os.path.join(bin_path, "website")):
|
||||
shutil.rmtree(os.path.join(bin_path, "website"))
|
||||
# 如果bin目录下存在dist目录,删除
|
||||
if os.path.isdir(os.path.join(bin_path, "dist")):
|
||||
shutil.rmtree(os.path.join(bin_path, "dist"))
|
||||
# 判断release目录是否存在,如果存在把里面的文件移动到bin目录下,然后删除release目录
|
||||
if os.path.isdir(os.path.join(bin_path, "release")):
|
||||
for file in os.listdir(os.path.join(bin_path, "release")):
|
||||
|
|
|
|||
Loading…
Reference in New Issue