()
| 27 | |
| 28 | |
| 29 | def get_geckodriver(): |
| 30 | # prefer using geckodriver from path |
| 31 | gecko_path = shutil.which("geckodriver") or shutil.which("geckodriver.exe") |
| 32 | if gecko_path: |
| 33 | return gecko_path |
| 34 | |
| 35 | asset_path = use_assets() |
| 36 | gdd = GeckoDriverDownloader(asset_path, asset_path) |
| 37 | # skips download if already downloaded |
| 38 | sym_path = gdd.download_and_install()[1] |
| 39 | return sym_path |
| 40 | |
| 41 | |
| 42 | def create_firefox_extension(): |
no test coverage detected