diff --git a/DrissionPage/commons/browser.py b/DrissionPage/commons/browser.py index 8f0e838..f6a592c 100644 --- a/DrissionPage/commons/browser.py +++ b/DrissionPage/commons/browser.py @@ -77,7 +77,7 @@ def get_launch_args(opt): if not has_user_path: port = opt.debugger_address.split(':')[-1] if opt.debugger_address else '0' path = Path(gettempdir()) / 'DrissionPage' / f'userData_{port}' - path.mkdir(parents=False, exist_ok=True) + path.mkdir(parents=True, exist_ok=True) result.add(f'--user-data-dir={path}') result = list(result) diff --git a/setup.py b/setup.py index f60a086..49f78f0 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ with open("README.md", "r", encoding='utf-8') as fh: setup( name="DrissionPage", - version="3.2.6", + version="3.2.7", author="g1879", author_email="g1879@qq.com", description="Python based web automation tool. It can control the browser and send and receive data packets.",