reworked to poetry run

This commit is contained in:
Dmitry Afanasyev 2022-08-13 16:02:57 +03:00
parent aa4751fd06
commit 818c5bf317
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ install service
cd ~/PycharmProjects/mosgortrans
sudo systemctl stop mosgortrans.service
git pull balshgit master
sudo cp ~/Pycharmprojects/mosgortrans/* /opt/mosgortrans/ -r
sudo rsync -a --progress ~/mosgortrans/* /opt/mosgortrans/ --exclude .git
sudo systemctl start mosgortrans.service
```

View File

@ -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