mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 03:08:14 +00:00
16 lines
385 B
Python
16 lines
385 B
Python
import argparse
|
|
import shutil
|
|
|
|
|
|
# 复制目录
|
|
def copy_tree(src, dst):
|
|
shutil.copytree(src, dst)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
parser = argparse.ArgumentParser(description='for test')
|
|
parser.add_argument('--src', type=str, help='', default='')
|
|
parser.add_argument('--dst', type=str, help='', default='')
|
|
args = parser.parse_args()
|
|
copy_tree(args.src, args.dst)
|