update bug

This commit is contained in:
2025-03-14 13:25:56 +08:00
parent d3d797450b
commit 22d6155228

View File

@@ -68,7 +68,7 @@ def html_to_image(html_file, output_image):
:param output_image: 输出的图片文件路径
"""
with sync_playwright() as p:
browser = p.chromium.launch(executable_path=r"C:\Users\Liu-OPEN\AppData\Local\Google\Chrome\Application\chrome.exe")
browser = p.chromium.launch(executable_path=r"C:\Users\Liu_WIN10\AppData\Local\Google\Chrome\Application\chrome.exe")
page = browser.new_page()
# 加载本地的 HTML 文件