mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
don't keep upgrading on mac
This commit is contained in:
parent
1570f65c48
commit
1656c2fbca
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,8 @@ class Config(dict):
|
|||
self.configPath = os.path.expanduser(
|
||||
"~/Library/Application Support/Anki")
|
||||
# upgrade?
|
||||
if os.path.exists(oldDb):
|
||||
if (not os.path.exists(self.configPath) and
|
||||
os.path.exists(oldDb)):
|
||||
self.makeAnkiDir()
|
||||
newDb = self.getDbPath()
|
||||
shutil.copy2(oldDb, newDb)
|
||||
|
|
Loading…
Reference in a new issue