From 8ebaf3117d778c0a3a66489991e8f27ff0640689 Mon Sep 17 00:00:00 2001 From: Jeppe Toustrup Date: Tue, 15 Sep 2015 17:13:24 +0200 Subject: [PATCH] Provide a default value for the chromedriver_path variable This was discussed in #2901 --- test/chromium/script.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/chromium/script.py b/test/chromium/script.py index 451e2ad599f1..79ccc6bba9d3 100644 --- a/test/chromium/script.py +++ b/test/chromium/script.py @@ -28,6 +28,7 @@ class bcolors: chromeOps = webdriver.ChromeOptions() chromeOps.add_extension(sys.argv[1]) +chromedriver_path = "chromedriver" if 'TRAVIS' in os.environ.keys(): # For TravisCI, we manually copy chromedriver to the local path. chromedriver_path = os.path.abspath("test/chromium/chromedriver") @@ -41,12 +42,6 @@ class bcolors: #Debian is lowercase when platform.linux_distribution() is used. #This is not a mistake. chromedriver_path = "/usr/lib/chromium/chromedriver" - else: - # Let's hope it's in the user's path. - chromedriver_path = "chromedriver" -else: - # Let's hope it's in the user's path. - chromedriver_path = "chromedriver" try: