From cef46ad59f2f8fd8259b8783a6c41cd7642e595b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 23 Oct 2020 21:12:59 +0530 Subject: [PATCH] Windows: Fix browse for cover button ot working with long paths --- src/calibre/gui2/metadata/basic_widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/metadata/basic_widgets.py b/src/calibre/gui2/metadata/basic_widgets.py index 6aa8859685..0735a2f260 100644 --- a/src/calibre/gui2/metadata/basic_widgets.py +++ b/src/calibre/gui2/metadata/basic_widgets.py @@ -1157,7 +1157,7 @@ class Cover(ImageView): # {{{ return _file = files[0] if _file: - _file = os.path.abspath(_file) + _file = make_long_path_useable(os.path.abspath(_file)) if not os.access(_file, os.R_OK): d = error_dialog(self, _('Cannot read'), _('You do not have permission to read the file: ') + _file)