mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
fix cop yof mac config file over partitions
This commit is contained in:
parent
dc637e78b3
commit
d67d64d1ea
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue