Closed shaiksamad closed 8 months ago
previous code raises FileNotFoundError, if the path Google/Chrome/Application does not exists in C:\Program Files
Google/Chrome/Application
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.
C:\Program Files (x86)
os.scandir()
if in both dirs path does not exits then set version to an empty string.
previous code raises FileNotFoundError, if the path
Google/Chrome/Application
does not exists inC:\Program Files
now, first checks if path exist in
C:\Program Files
if not then checks inC:\Program Files (x86)
then does theos.scandir()
to avoid error.if in both dirs path does not exits then set version to an empty string.