diff --git a/setup.py b/setup.py index 4e7f0dd..5ffc718 100644 --- a/setup.py +++ b/setup.py @@ -61,4 +61,4 @@ setup( "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", ], -) +) \ No newline at end of file diff --git a/undetected_chromedriver/patcher.py b/undetected_chromedriver/patcher.py index f524b5a..84ef9e9 100644 --- a/undetected_chromedriver/patcher.py +++ b/undetected_chromedriver/patcher.py @@ -39,6 +39,8 @@ class Patcher(object): if platform.endswith("win32"): d = "~/appdata/roaming/undetected_chromedriver" + elif 'LAMBDA_TASK_ROOT' in os.environ: + d = "/tmp/undetected_chromedriver" elif platform.startswith("linux"): d = "~/.local/share/undetected_chromedriver" elif platform.endswith("darwin"):