Skip to content

Commit

Permalink
The correct way to get chromedriver path
Browse files Browse the repository at this point in the history
  • Loading branch information
Fasjeit authored Oct 13, 2023
1 parent 985fea7 commit b2380a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ESET KeyGen.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Version 1.0.8.1 (131023-1557)
VERSION = 'v1.0.8.1 (131023-1557) by rzc0d3r'
# Version 1.0.8.2 (131023-2039)
VERSION = 'v1.0.8.2 (131023-2039) by rzc0d3r'
import modules.chrome_driver_installer as chrome_driver_installer
import modules.logger as logger

Expand Down Expand Up @@ -246,10 +246,10 @@ def getLicenseData(self):
platform, arch = chrome_driver_installer.get_platform_for_chrome_driver()
chromedriver_name = 'chromedriver.exe'
if platform != 'win':
chromedriver_name = './chromedriver'
chromedriver_name = 'chromedriver'
if os.path.exists(chromedriver_name):
os.chmod(chromedriver_name, 0o777)
out = check_output([chromedriver_name, "--version"], stderr=PIPE)
out = check_output([os.getcwd()+'/'+chromedriver_name, "--version"], stderr=PIPE)
if out is not None:
current_chromedriver_version = out.decode("utf-8").split(' ')[1]
logger.console_log('Chrome version: {0}'.format(chrome_version), logger.INFO, False)
Expand Down

0 comments on commit b2380a1

Please sign in to comment.