Fix dump and restore not working on windows

This commit is contained in:
Kovid Goyal 2013-10-17 15:41:29 +05:30
parent 28ca52be0b
commit abcaae49e2

View File

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