mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2026-02-03 11:20:56 +03:00
reworked to poetry run
This commit is contained in:
@@ -36,7 +36,7 @@ def configure_firefox_driver(private_window: bool = False) -> WebDriver:
|
||||
opt.add_argument(f'{Path.home()}/snap/firefox/common/.mozilla/firefox')
|
||||
if private_window:
|
||||
opt.set_preference("browser.privatebrowsing.autostart", True)
|
||||
service = Service(executable_path=BASE_DIR / 'geckodriver')
|
||||
service = Service(executable_path=str(BASE_DIR / 'geckodriver'))
|
||||
firefox_driver = webdriver.Firefox(service=service, options=opt)
|
||||
|
||||
return firefox_driver
|
||||
|
||||
Reference in New Issue
Block a user