chrome and chromedriver can (and should, look at docker-compose.yml) be configured through environment variables

This commit is contained in:
tcsenpai 2025-05-02 23:23:25 +02:00
parent 84c618678a
commit bdd7e34b8c

View File

@ -129,7 +129,7 @@ def create_driver(
else:
chrome_options.add_extension(crx_path)
chromedriver_path = "/usr/bin/chromedriver"
chromedriver_path = os.environ.get("CHROMEDRIVER_PATH")
if not os.path.exists(chromedriver_path):
chromedriver_path = chromedriver_autoinstaller.install()