diff --git a/undetected_chromedriver/patcher.py b/undetected_chromedriver/patcher.py index c7818c7..24cb3fa 100644 --- a/undetected_chromedriver/patcher.py +++ b/undetected_chromedriver/patcher.py @@ -38,6 +38,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"):