mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
修复set_paths()的一个小bug
This commit is contained in:
parent
4aa071b10f
commit
20bc6f5516
@ -53,6 +53,9 @@ def set_paths(driver_path: str = None,
|
|||||||
om = OptionsManager(ini_path)
|
om = OptionsManager(ini_path)
|
||||||
|
|
||||||
def format_path(path: str) -> str:
|
def format_path(path: str) -> str:
|
||||||
|
if not path:
|
||||||
|
return ''
|
||||||
|
|
||||||
return str(path).replace('/', '\\')
|
return str(path).replace('/', '\\')
|
||||||
|
|
||||||
if driver_path is not None:
|
if driver_path is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user