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:
Kovid Goyal 2013-10-20 09:19:52 +05:30
parent 21540da4f4
commit 0bc80abeab

View File

@ -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():