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: