Skip to content

Commit 8ebaf31

Browse files
committed
Provide a default value for the chromedriver_path variable
This was discussed in EFForg#2901
1 parent 86d5b42 commit 8ebaf31

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/chromium/script.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class bcolors:
2828
chromeOps = webdriver.ChromeOptions()
2929
chromeOps.add_extension(sys.argv[1])
3030

31+
chromedriver_path = "chromedriver"
3132
if 'TRAVIS' in os.environ.keys():
3233
# For TravisCI, we manually copy chromedriver to the local path.
3334
chromedriver_path = os.path.abspath("test/chromium/chromedriver")
@@ -41,12 +42,6 @@ class bcolors:
4142
#Debian is lowercase when platform.linux_distribution() is used.
4243
#This is not a mistake.
4344
chromedriver_path = "/usr/lib/chromium/chromedriver"
44-
else:
45-
# Let's hope it's in the user's path.
46-
chromedriver_path = "chromedriver"
47-
else:
48-
# Let's hope it's in the user's path.
49-
chromedriver_path = "chromedriver"
5045

5146

5247
try:

0 commit comments

Comments
 (0)