Skip to content

Commit

Permalink
A safer method of getting the path to the chrome driver
Browse files Browse the repository at this point in the history
  • Loading branch information
rzc0d3r committed Oct 13, 2023
1 parent 46b6bd4 commit cec617b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ESET KeyGen.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Version 1.0.8.2 (131023-2039)
VERSION = 'v1.0.8.2 (131023-2039) by rzc0d3r'
# Version 1.0.8.2 (131023-2151)
VERSION = 'v1.0.8.2 (131023-2151) by rzc0d3r'
import modules.chrome_driver_installer as chrome_driver_installer
import modules.logger as logger

Expand Down Expand Up @@ -249,7 +249,7 @@ def getLicenseData(self):
chromedriver_name = 'chromedriver'
if os.path.exists(chromedriver_name):
os.chmod(chromedriver_name, 0o777)
out = check_output([os.getcwd()+'/'+chromedriver_name, "--version"], stderr=PIPE)
out = check_output([os.path.join(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 cec617b

Please sign in to comment.