From 4b023d96e612af303e6b83431cbd511b616f492f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Brochensque=20J=C3=BAnior?= <55159911+willnaoosmith@users.noreply.github.com> Date: Tue, 4 Jul 2023 10:55:00 -0300 Subject: [PATCH 1/2] Update utils.py --- chromedriver_autoinstaller/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chromedriver_autoinstaller/utils.py b/chromedriver_autoinstaller/utils.py index 805f1a4..fc37920 100644 --- a/chromedriver_autoinstaller/utils.py +++ b/chromedriver_autoinstaller/utils.py @@ -107,7 +107,7 @@ def get_chrome_version(): platform, _ = get_platform_architecture() if platform == "linux": path = get_linux_executable_path() - with subprocess.Popen([path, "--version"], stdout=subprocess.PIPE) as proc: + with subprocess.Popen([path, "--version"], stdout=subprocess.PIPE, shell=True) as proc: version = ( proc.stdout.read() .decode("utf-8") @@ -122,6 +122,7 @@ def get_chrome_version(): "--version", ], stdout=subprocess.PIPE, + shell=True ) version = ( process.communicate()[0] @@ -141,6 +142,7 @@ def get_chrome_version(): stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, stdin=subprocess.DEVNULL, + shell=True ) output = process.communicate() if output and output[0] and len(output[0]) > 0: @@ -155,6 +157,7 @@ def get_chrome_version(): stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE, + shell=True ) version = process.communicate()[0].decode("UTF-8").strip() else: From 6ba71a75ffe5895286f95f71034e7e33ab2b0751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Brochensque=20J=C3=BAnior?= <55159911+willnaoosmith@users.noreply.github.com> Date: Tue, 4 Jul 2023 11:13:24 -0300 Subject: [PATCH 2/2] Altered installation command --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a5fb9e5..89730f1 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Automatically download and install [chromedriver](https://chromedriver.chromium. ## Installation ```bash -pip install chromedriver-autoinstaller +pip install git+https://github.com/willnaoosmith/python-chromedriver-autoinstaller.git@master ``` ## Usage