update 2023/4/19 pypi update2

This commit is contained in:
bgArray 2023-04-19 21:45:43 +08:00
parent 882fa4175e
commit 54cd6b196e

View File

@ -7,9 +7,24 @@ egg_info = [i for i in os.listdir() if i.endswith(".egg-info")][0]
print(egg_info)
# remove build, dist, logs, TrimLog.egg-info folders
shutil.rmtree("build")
shutil.rmtree("dist")
shutil.rmtree(egg_info)
shutil.rmtree("logs")
try:
shutil.rmtree("build")
except FileNotFoundError:
pass
try:
shutil.rmtree("dist")
except FileNotFoundError:
pass
try:
shutil.rmtree(egg_info)
except FileNotFoundError:
pass
try:
shutil.rmtree("logs")
except FileNotFoundError:
pass
print("Cleaned up!")