Skip to content

Commit

Permalink
actual fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Jan 28, 2025
1 parent 7e40681 commit f508277
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pwnshop/templates/base/selenium.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/opt/pwn.college/python

import shutil
import psutil
import urllib
import atexit
Expand All @@ -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)

Expand Down

0 comments on commit f508277

Please sign in to comment.