MCPcopy Index your code
hub / github.com/InstaPy/InstaPy / get_geckodriver

Function get_geckodriver

instapy/browser.py:29–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28
29def 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
42def create_firefox_extension():

Callers 1

Calls 1

use_assetsFunction · 0.85

Tested by

no test coverage detected