使用python脚本删除上次生成 加快编译速度

This commit is contained in:
2025-01-13 11:19:08 +08:00
parent 6c31c3d96f
commit b29b776229
4 changed files with 19 additions and 13 deletions

View File

@@ -13,6 +13,9 @@ if __name__ == "__main__":
cmd=f"{' '.join(sys.argv[1:])} > build_log.log"
if not ('not_clean' in sys.argv[1:]):
os.system("python3 ../clear_output.py > /dev/null")
os.remove("../make_flags.txt")
os.remove("../python_script_log.log")
os.system("python3 ../praper_vscode.py clear >> ../python_script_log.log")
path="../tools/gen_img/customer"
if os.path.exists(path):
shutil.rmtree(path)