| 123456789 |
- from pathlib import Path
- import json, shutil
- ROOT=Path(__file__).resolve().parents[1]
- SITE=ROOT/'课件'/'EnterpriseKB_RAG_V1.0讲义'
- SNAP=ROOT/'course-source'/'legacy-html'
- if not (SNAP/'index.html').exists():
- for p in SITE.rglob('*.html'):
- t=SNAP/p.relative_to(SITE);t.parent.mkdir(parents=True,exist_ok=True);shutil.copy2(p,t)
- print('Saved original HTML templates in isolated course-source')
|