From 02a04fce59d224419048e88444b0051de67a8b65 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Fri, 29 Nov 2019 09:01:16 +1100 Subject: [PATCH] Add current folder to system path so browser driver can be found --- spectur_live_view.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spectur_live_view.py b/spectur_live_view.py index 243fe05..e0e1dd1 100644 --- a/spectur_live_view.py +++ b/spectur_live_view.py @@ -4,6 +4,7 @@ Open an automated selenium webdriver, and download images from Live View mode. """ import os +import sys import glob import time import pytz @@ -256,6 +257,9 @@ def get_brightness(jpg_name, mask): # Create counter t = [] +# Add current folder to system path so browser drive can be found +sys.path.insert(0, pwd) + # Open browser get_images()