From d67d64d1eaecc2a5244c4b90563e84d394a1a157 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 16 Nov 2008 01:50:50 +0900 Subject: [PATCH] fix cop yof mac config file over partitions --- ankiqt/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ankiqt/config.py b/ankiqt/config.py index 820323833..dbb9042e4 100644 --- a/ankiqt/config.py +++ b/ankiqt/config.py @@ -6,7 +6,7 @@ from PyQt4.QtGui import * from PyQt4.QtCore import * -import os, sys, cPickle, locale, types +import os, sys, cPickle, locale, types, shutil # compatability def unpickleWxFont(*args): @@ -33,7 +33,7 @@ class Config(dict): if os.path.exists(oldDb): self.makeAnkiDir() newDb = self.getDbPath() - os.rename(oldDb, newDb) + shutil.copytree(oldDb, newDb) self.makeAnkiDir() self.load()