paht for aws lambda

This commit is contained in:
AktanKasymaliev 2022-05-23 23:07:24 +06:00
parent f386a5b743
commit 444d9e4aba
1 changed files with 2 additions and 0 deletions

View File

@ -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"):