Lowercase before checking .lnk extension.
This commit is contained in:
parent
c6ac312e7e
commit
adaa65a9a7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue