mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -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):
|
||||
self.makeAnkiDir()
|
||||
newDb = self.getDbPath()
|
||||
shutil.copytree(oldDb, newDb)
|
||||
shutil.copy2(oldDb, newDb)
|
||||
self.makeAnkiDir()
|
||||
self.load()
|
||||
|
||||
|
|
Loading…
Reference in a new issue