From 15ca733f148a7957d074174ebc2830cc0b4fc647 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 9 Jul 2017 13:22:01 +1000 Subject: [PATCH] fix base folder location on windows --- aqt/profiles.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aqt/profiles.py b/aqt/profiles.py index 9728b4408..5fcfea366 100644 --- a/aqt/profiles.py +++ b/aqt/profiles.py @@ -249,7 +249,11 @@ and no other programs are accessing your profile folders, then try again.""")) def _defaultBase(self): if isWin: loc = QStandardPaths.writableLocation(QStandardPaths.AppDataLocation) - return os.path.join(loc, "Anki2") + # the returned value seem to automatically include the app name, but we use Anki2 rather + # than Anki + assert loc.endswith("/Anki") + loc += "2" + return loc elif isMac: return os.path.expanduser("~/Library/Application Support/Anki2") else: