修复奇怪问题

This commit is contained in:
2022-12-18 18:00:19 +08:00
parent 1d7bd94908
commit 33be2db48f
18 changed files with 185 additions and 32 deletions

13
RemovePycacheFile.py Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env python3
import os
def Remove(path):
for i in os.listdir(path):
nowPath = f"{path}/{i}"
if os.path.isdir(nowPath):
if i == "__pycache__":
os.system(f"rm -rfv '{nowPath}'")
else:
Remove(nowPath)
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
debPath = f"{programPath}/new-deb-build"
Remove(debPath)