#!/usr/bin/env python3 """ 路径修复脚本 - 确保所有文件路径正确 """ import os import re from pathlib import Path def fix_html_paths(): """修复HTML中的静态资源路径""" html_file = Path("static/index.html") if not html_file.exists(): print(f"❌ 文件不存在: {html_file}") return False print("🔧 修复HTML中的静态资源路径...") with open(html_file, 'r', encoding='utf-8') as f: content = f.read() # 修复CSS路径 content = re.sub( r'