modify: PipeConnection 兼容问题

This commit is contained in:
2026-10-11 21:21:45 +08:00
parent 1725b6cbdb
commit daf0a579a9
6 changed files with 21434 additions and 43 deletions
+12
View File
@@ -0,0 +1,12 @@
import os
import shutil
# 需要遍历的目录
root_dir = "./"
# 遍历目录
for dirpath, dirnames, filenames in os.walk(root_dir):
if "__pycache__" in dirnames:
# 获取 __pycache__ 目录的全路径
pycache_dir = os.path.join(dirpath, "__pycache__")
# 删除目录
shutil.rmtree(pycache_dir)
print(f"Removed: {pycache_dir}")