no need to copytree a file

This commit is contained in:
Damien Elmes 2008-11-16 02:44:34 +09:00
parent df1118575a
commit d059e3fdc2

View file

@ -33,7 +33,7 @@ class Config(dict):
if os.path.exists(oldDb):
self.makeAnkiDir()
newDb = self.getDbPath()
shutil.copytree(oldDb, newDb)
shutil.copy2(oldDb, newDb)
self.makeAnkiDir()
self.load()