yeongbin-jo / python-chromedriver-autoinstaller

The chromedriver auto installer for distribution.
MIT License
235 stars 77 forks source link

Fix #71 FileNotFoundError in Program Files #72

Closed shaiksamad closed 8 months ago

shaiksamad commented 8 months ago

previous code raises FileNotFoundError, if the path Google/Chrome/Application does not exists in C:\Program Files

now, first checks if path exist in C:\Program Files if not then checks in C:\Program Files (x86) then does the os.scandir() to avoid error.

if in both dirs path does not exits then set version to an empty string.