mirror of
https://github.com/inAudible-NG/audible-activator.git
synced 2024-11-18 03:18:57 +01:00
check for ubuntu package chromedriver path and use it if available.
Signed-off-by: Me <corbolais@gmail.com>
This commit is contained in:
parent
74da2f0d97
commit
a1d0f16ab0
@ -56,8 +56,10 @@ def fetch_activation_bytes(username, password, options):
|
||||
else:
|
||||
if sys.platform == 'win32':
|
||||
chromedriver_path = "chromedriver.exe"
|
||||
else:
|
||||
elif os.path.isfile("/usr/lib/chromium-browser/chromedriver"): # Ubuntu package chromedriver path
|
||||
chromedriver_path = "/usr/lib/chromium-browser/chromedriver"
|
||||
else:
|
||||
chromedriver_path = "./chromedriver"
|
||||
|
||||
driver = webdriver.Chrome(chrome_options=opts,
|
||||
executable_path=chromedriver_path)
|
||||
|
Loading…
Reference in New Issue
Block a user