Lowercase before checking .lnk extension.

This commit is contained in:
Ethan Dalool 2020-01-15 22:35:29 -08:00
parent c6ac312e7e
commit adaa65a9a7

View file

@ -20,7 +20,7 @@ def which(cmd, *args, **kwargs):
if path is None:
return None
if os.name == 'nt' and path.endswith('.lnk'):
if os.name == 'nt' and path.lower().endswith('.lnk'):
path = winshell.Shortcut(path).path
return path