mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
no need to copytree a file
This commit is contained in:
parent
df1118575a
commit
d059e3fdc2
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class Config(dict):
|
||||||
if os.path.exists(oldDb):
|
if os.path.exists(oldDb):
|
||||||
self.makeAnkiDir()
|
self.makeAnkiDir()
|
||||||
newDb = self.getDbPath()
|
newDb = self.getDbPath()
|
||||||
shutil.copytree(oldDb, newDb)
|
shutil.copy2(oldDb, newDb)
|
||||||
self.makeAnkiDir()
|
self.makeAnkiDir()
|
||||||
self.load()
|
self.load()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue