mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix dump and restore not working on windows
This commit is contained in:
parent
28ca52be0b
commit
abcaae49e2
@ -1008,7 +1008,7 @@ class DB(object):
|
||||
callback(_('Restoring database from SQL') + '...')
|
||||
with closing(Connection(tmpdb)) as conn:
|
||||
shell = Shell(db=conn, encoding='utf-8')
|
||||
shell.process_command('.read ' + fname)
|
||||
shell.process_command('.read ' + fname.replace(os.sep, '/'))
|
||||
conn.execute('PRAGMA user_version=%d;'%uv)
|
||||
|
||||
self.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user