Lowercase before checking .lnk extension.

master
Ethan Dalool 2020-01-15 22:35:29 -08:00
parent c6ac312e7e
commit adaa65a9a7
1 changed files with 1 additions and 1 deletions

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