From abcaae49e27b841edd358dff8cabadaca6e20464 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 17 Oct 2013 15:41:29 +0530 Subject: [PATCH] Fix dump and restore not working on windows --- src/calibre/db/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/db/backend.py b/src/calibre/db/backend.py index 9d085935f0..9806ad927e 100644 --- a/src/calibre/db/backend.py +++ b/src/calibre/db/backend.py @@ -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()