mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
修复小bug
This commit is contained in:
parent
792c05141b
commit
5481cd8ae4
@ -33,7 +33,8 @@ def set_paths(driver_path: str = None,
|
||||
om = OptionsManager()
|
||||
|
||||
def format_path(path: str) -> str:
|
||||
return path.replace('/', '\\')
|
||||
if isinstance(path, str):
|
||||
return path.replace('/', '\\')
|
||||
|
||||
if driver_path is not None:
|
||||
om.set_item('paths', 'chromedriver_path', format_path(driver_path))
|
||||
|
Loading…
x
Reference in New Issue
Block a user