From 3bce88f82c0b975ca8df6897c6ede06a4396da2c Mon Sep 17 00:00:00 2001 From: UltrafunkAmsterdam Date: Wed, 28 Dec 2022 15:46:52 +0100 Subject: [PATCH] 3.2.0 --- undetected_chromedriver/patcher.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/undetected_chromedriver/patcher.py b/undetected_chromedriver/patcher.py index a313a18..c20ead8 100644 --- a/undetected_chromedriver/patcher.py +++ b/undetected_chromedriver/patcher.py @@ -18,7 +18,7 @@ import zipfile logger = logging.getLogger(__name__) -IS_POSIX = sys.platform.startswith(("darwin", "cygwin", "linux")) +IS_POSIX = sys.platform.startswith(("darwin", "cygwin", "linux", "linux2")) class Patcher(object): @@ -30,7 +30,7 @@ class Patcher(object): if platform.endswith("win32"): zip_name %= "win32" exe_name %= ".exe" - if platform.endswith("linux"): + if platform.endswith(("linux", "linux2")): zip_name %= "linux64" exe_name %= "" if platform.endswith("darwin"): @@ -41,7 +41,7 @@ class Patcher(object): d = "~/appdata/roaming/undetected_chromedriver" elif "LAMBDA_TASK_ROOT" in os.environ: d = "/tmp/undetected_chromedriver" - elif platform.startswith("linux"): + elif platform.startswith(("linux","linux2")): d = "~/.local/share/undetected_chromedriver" elif platform.endswith("darwin"): d = "~/Library/Application Support/undetected_chromedriver"