From 1656c2fbca66b0c9bf53ebcd7280a46976391279 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 21 Nov 2008 20:18:48 +0900 Subject: [PATCH] don't keep upgrading on mac --- ankiqt/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ankiqt/config.py b/ankiqt/config.py index be1fccc2c..1422a7ba9 100644 --- a/ankiqt/config.py +++ b/ankiqt/config.py @@ -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)