From dabb69c1af6e386920533f679985732e2755e4d0 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 17 Jan 2024 09:41:44 +0800 Subject: [PATCH] =?UTF-8?q?comment=20=E5=A4=8D=E5=88=B6=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=96=87=E4=BB=B6=E5=88=B0=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mainfix.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/mainfix.py b/mainfix.py index 7225f62..032007c 100644 --- a/mainfix.py +++ b/mainfix.py @@ -52,3 +52,25 @@ if __name__ == "__main__": main(args.pdb_dir_path, args.script_path) # python mainfix.py pdb_test1 modelbuilder.py +# 复制修复完成文件到指定文件夹 +# import os +# import shutil +# from pathlib import Path + +# # 设置源目录和目标目录 +# source_dir = Path('pdb_test1') +# target_dir = Path('newfix') + +# # 确保目标目录存在 +# target_dir.mkdir(exist_ok=True) + +# # 遍历源目录 +# for subdir in source_dir.glob('runner_*'): +# if subdir.is_dir(): +# # 查找所有匹配的文件 +# for file in subdir.glob('*.modellerfix.pdb'): +# # 移动文件到目标目录 +# shutil.move(str(file), target_dir / file.name) + +# print("文件移动完成。") +