diff --git a/voussoirkit/winwhich.py b/voussoirkit/winwhich.py index 25f7ebd..eb59af4 100644 --- a/voussoirkit/winwhich.py +++ b/voussoirkit/winwhich.py @@ -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