From f50827700e3520b09a4d013bf688799ede1ca488 Mon Sep 17 00:00:00 2001 From: Yan Date: Mon, 27 Jan 2025 20:37:47 -0700 Subject: [PATCH] actual fix --- pwnshop/templates/base/selenium.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pwnshop/templates/base/selenium.py b/pwnshop/templates/base/selenium.py index fe9646d..04b9af8 100755 --- a/pwnshop/templates/base/selenium.py +++ b/pwnshop/templates/base/selenium.py @@ -1,5 +1,6 @@ #!/opt/pwn.college/python +import shutil import psutil import urllib import atexit @@ -21,7 +22,7 @@ options = FirefoxOptions() options.add_argument("--headless") -service = FirefoxService(log_path="/dev/null", executable_path="/usr/local/bin/geckodriver") +service = FirefoxService(log_path="/dev/null", executable_path=shutil.which("geckodriver")) browser = webdriver.Firefox(service=service, options=options) atexit.register(browser.quit)