Makes path relative

Using the ./ at the beginning forces the program to look in the
current directly for the driver. It's much more portable to simply
rely on the PATH variable.
This commit is contained in:
Noufal Ibrahim 2017-06-15 11:14:00 +05:30
parent 36ec7f0cd2
commit 841bee290b

View File

@ -57,7 +57,7 @@ def fetch_activation_bytes(username, password, options):
if sys.platform == 'win32':
chromedriver_path = "chromedriver.exe"
else:
chromedriver_path = "./chromedriver"
chromedriver_path = "chromedriver"
driver = webdriver.Chrome(chrome_options=opts,
executable_path=chromedriver_path)