mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix for adding files when running from source without the link resolver native function on windows
This commit is contained in:
parent
5fa154e075
commit
65293190f0
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user