fix mac config upgrade

This commit is contained in:
Damien Elmes 2008-11-15 02:48:24 +09:00
parent b62f7e847b
commit 4b7b6b7a3c

View file

@ -34,7 +34,7 @@ class Config(dict):
if not os.path.exists(self.configPath): if not os.path.exists(self.configPath):
self.makeAnkiDir() self.makeAnkiDir()
newDb = self.getDbPath() newDb = self.getDbPath()
os.path.rename(oldDb, newDb) os.rename(oldDb, newDb)
if not os.path.exists(self.configPath): if not os.path.exists(self.configPath):
self.makeAnkiDir() self.makeAnkiDir()
self.load() self.load()