From 0bc80abeabc52ef9d31f37305fc1f7a02286a5a5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 20 Oct 2013 09:19:52 +0530 Subject: [PATCH] Fix library restore failing on some windows installs Fix the restore database operation failing on windows installs with long usernames (this would cause the path to the temporary folder used to restore the database to become too long). --- src/calibre/db/restore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/db/restore.py b/src/calibre/db/restore.py index 9569dbeab6..1440bd444b 100644 --- a/src/calibre/db/restore.py +++ b/src/calibre/db/restore.py @@ -99,7 +99,7 @@ class Restore(Thread): def run(self): try: - with TemporaryDirectory('_library_restore') as tdir: + with TemporaryDirectory('relib') as tdir: self.library_path = tdir self.scan_library() if not self.load_preferences():