comment 复制修复完成文件到指定文件夹
This commit is contained in:
22
mainfix.py
22
mainfix.py
@@ -52,3 +52,25 @@ if __name__ == "__main__":
|
|||||||
main(args.pdb_dir_path, args.script_path)
|
main(args.pdb_dir_path, args.script_path)
|
||||||
|
|
||||||
# python mainfix.py pdb_test1 modelbuilder.py
|
# 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("文件移动完成。")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user