From 65293190f00b20f08eed8a998530e0688898ee39 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 20 Dec 2020 09:10:17 +0530 Subject: [PATCH] Fix for adding files when running from source without the link resolver native function on windows --- src/calibre/gui2/add.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/add.py b/src/calibre/gui2/add.py index 30422e0d10..df0b9812ab 100644 --- a/src/calibre/gui2/add.py +++ b/src/calibre/gui2/add.py @@ -66,7 +66,8 @@ def resolve_windows_links(paths, hwnd=None): try: from calibre_extensions.winutil import resolve_lnk except ImportError: - return paths + def resolve_lnk(x, *a): + return x for x in paths: if x.lower().endswith('.lnk'): try: