Added second patch

This commit is contained in:
Julien Malka 2023-10-11 15:36:20 +02:00
parent b50ec1a2b2
commit cdb8856b3e
Signed by: Luj
GPG key ID: 6FC74C847011FD83
2 changed files with 13 additions and 0 deletions

View file

@ -19,6 +19,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ chromedriver ];
patches = [
./is_patched.patch
(substituteAll {
src = ./chromedriver_path.patch;
chromedriver_path = "${chromedriver}/bin/chromedriver";

View file

@ -0,0 +1,12 @@
diff --git a/src/undetected_chromedriver/patcher.py b/src/undetected_chromedriver/patcher.py
index 5776d19..e3159dd 100644
--- a/src/undetected_chromedriver/patcher.py
+++ b/src/undetected_chromedriver/patcher.py
@@ -334,6 +334,7 @@ class Patcher(object):
return "".join(cdc).encode()
def is_binary_patched(self, executable_path=None):
+ return True
executable_path = executable_path or self.executable_path
try:
with io.open(executable_path, "rb") as fh: