make path to documents folder translatable
This commit is contained in:
parent
45a6e8cdba
commit
8e2b653bd0
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user