mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2025-09-11 13:00:40 +03:00
reworked to poetry run
This commit is contained in:
parent
aa4751fd06
commit
818c5bf317
@ -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
|
||||
```
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user