mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 20:03:43 +02: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue