diff --git a/sehuatang/shehuatang.py b/sehuatang/shehuatang.py index 0b752ec..7e1478c 100644 --- a/sehuatang/shehuatang.py +++ b/sehuatang/shehuatang.py @@ -57,7 +57,7 @@ def fetch_and_create_pdf(url): "utils", "chromedriver", "chromedriver.exe" ) else: # Linux - chrome_driver_path = 'chromedriver' # 使用系统PATH中的chromedriver + chrome_driver_path = '/usr/bin/chromedriver' # 使用系统PATH中的chromedriver try: if os.name == 'nt' and not os.path.exists(chrome_driver_path): diff --git a/xiuren/meitu_dl.py b/xiuren/meitu_dl.py index c6dd0d8..75f7d3a 100644 --- a/xiuren/meitu_dl.py +++ b/xiuren/meitu_dl.py @@ -90,7 +90,7 @@ def fetch_images(post_url): "utils", "chromedriver", "chromedriver.exe" ) else: # Linux - chrome_driver_path = 'chromedriver' # 使用系统PATH中的chromedriver + chrome_driver_path = '/usr/bin/chromedriver' # 使用系统PATH中的chromedriver # 如果本地没有chromedriver.exe,则使用默认方式 if not os.path.exists(chrome_driver_path):