Closed milahu closed 9 months ago
Ahh yep get what you mean. It's just some util function for demonstration, shouldn't & isn't really used anywhere. I'll fix it tho, thx.
It's just some util function
this code is reached by https://github.com/kaliiiiiiiiii/Selenium-Driverless/issues/123#issuecomment-1858803756
@milahu I'm aware that changing the arguments is suboptimal. However, as the function should only be used for testing, I think that making the data_dir_path
not optional anymore is the way to go.
For usage at deployment, creating a tempfile.TemporaryDirectory
and after usage cleaning it with shutil.rmdir
whould be the way to go I'd suppose.
https://github.com/kaliiiiiiiiii/CDP-Socket/blob/4bae35c6a93b5c86da8978a82820c5944b2b6ed8/src/cdp_socket/utils/utils.py#L116-L119
https://github.com/kaliiiiiiiiii/CDP-Socket/blob/4bae35c6a93b5c86da8978a82820c5944b2b6ed8/src/cdp_socket/utils/utils.py#L60-L61
quickfix:
similar issue: https://github.com/kaliiiiiiiiii/Selenium-Driverless/issues/122