From adaa65a9a71bcbdfca56cfa4e69621fc0b8ff817 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 15 Jan 2020 22:35:29 -0800 Subject: [PATCH] Lowercase before checking .lnk extension. --- voussoirkit/winwhich.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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