Use hardcoded path for driver executable

hightide
Dan Howe 5 years ago
parent 02a04fce59
commit aa58f3932b

@ -4,7 +4,6 @@ Open an automated selenium webdriver, and download images from Live View mode.
""" """
import os import os
import sys
import glob import glob
import time import time
import pytz import pytz
@ -54,7 +53,8 @@ def start_session():
# Start webdriver # Start webdriver
options = Options() options = Options()
options.headless = True options.headless = True
driver = webdriver.Firefox(options=options) executable_path = os.path.join(pwd, 'geockdriver')
driver = webdriver.Firefox(executable_path=executable_path, options=options)
return driver return driver
@ -257,9 +257,6 @@ def get_brightness(jpg_name, mask):
# Create counter # Create counter
t = [] t = []
# Add current folder to system path so browser drive can be found
sys.path.insert(0, pwd)
# Open browser # Open browser
get_images() get_images()

Loading…
Cancel
Save