From 5a349b24e9e0c17c1e9b76f6ebd9b01224f9483a Mon Sep 17 00:00:00 2001 From: g1879 Date: Mon, 12 Apr 2021 17:50:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=98=E9=87=8F=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrissionPage/easy_set.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DrissionPage/easy_set.py b/DrissionPage/easy_set.py index edc4417..999cebc 100644 --- a/DrissionPage/easy_set.py +++ b/DrissionPage/easy_set.py @@ -5,12 +5,12 @@ @File : driver_page.py """ from os import popen + from pathlib import Path from pprint import pprint from re import search as RE_SEARCH -from typing import Union - from selenium import webdriver +from typing import Union from DrissionPage.config import OptionsManager, DriverOptions from DrissionPage.drission import Drission @@ -210,7 +210,7 @@ def get_match_driver(ini_path: Union[str, None] = 'default', if show_msg: print('chrome.exe路径', chrome_path) - ver = _get_chrome_version(chrome_path) + ver = _get_chrome_version(str(chrome_path)) if show_msg: print('version', ver)