make path to documents folder translatable

This commit is contained in:
Soren I. Bjornstad 2014-07-03 14:46:34 -05:00
parent 45a6e8cdba
commit 8e2b653bd0

View File

@ -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")