From 444d9e4abaf6ca6d9c0baedde318083f63a7a7e8 Mon Sep 17 00:00:00 2001 From: AktanKasymaliev Date: Mon, 23 May 2022 23:07:24 +0600 Subject: [PATCH] paht for aws lambda --- undetected_chromedriver/patcher.py | 2 ++ 1 file changed, 2 insertions(+) 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"):