mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
微调
This commit is contained in:
parent
b69472b0fc
commit
0d0408a977
@ -485,13 +485,10 @@ def _create_driver(chrome_path: str, driver_path: str, options: Options) -> WebD
|
|||||||
from DrissionPage.easy_set import _get_chrome_path
|
from DrissionPage.easy_set import _get_chrome_path
|
||||||
|
|
||||||
if chrome_path == 'chrome.exe':
|
if chrome_path == 'chrome.exe':
|
||||||
chrome_path = _get_chrome_path(show_msg=False, from_ini=False, from_system_path=False)
|
chrome_path = _get_chrome_path(show_msg=False, from_ini=False)
|
||||||
if not chrome_path:
|
|
||||||
chrome_path = _get_chrome_path(show_msg=False, from_ini=False, from_regedit=False)
|
|
||||||
|
|
||||||
if chrome_path:
|
if chrome_path:
|
||||||
driver_path = get_match_driver(chrome_path=chrome_path, check_version=False, show_msg=True)
|
driver_path = get_match_driver(chrome_path=chrome_path, check_version=False, show_msg=True)
|
||||||
|
|
||||||
if driver_path:
|
if driver_path:
|
||||||
try:
|
try:
|
||||||
options.binary_location = chrome_path
|
options.binary_location = chrome_path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user