From 8e2b653bd0dcec965cbf1883d13bfb622f1de93b Mon Sep 17 00:00:00 2001 From: "Soren I. Bjornstad" Date: Thu, 3 Jul 2014 14:46:34 -0500 Subject: [PATCH] make path to documents folder translatable --- aqt/profiles.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aqt/profiles.py b/aqt/profiles.py index cc99fd26e..37db4e12d 100644 --- a/aqt/profiles.py +++ b/aqt/profiles.py @@ -223,7 +223,8 @@ and no other programs are accessing your profile folders, then try again.""")) if os.path.exists(p): return p else: - return os.path.expanduser("~/Documents/Anki") + loc = QDesktopServices.storageLocation(QDesktopServices.DocumentsLocation) + return os.path.join(loc, "Anki") def _loadMeta(self): path = os.path.join(self.base, "prefs.db")