mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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).
This commit is contained in:
parent
21540da4f4
commit
0bc80abeab
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user