Difficult-Rocket/docs/page/output.py

14 lines
224 B
Python
Raw Normal View History

2023-01-05 21:36:47 +08:00
import shutil
def copy():
# 复制 ./docs/index.html 到 ../ 文件夹中
try:
shutil.copyfile('./docs/index.html', '../index.html')
except OSError:
pass
if __name__ == '__main__':
copy()