update bug
This commit is contained in:
@@ -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 文件
|
||||
|
||||
Reference in New Issue
Block a user