mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
make path to documents folder translatable
This commit is contained in:
parent
45a6e8cdba
commit
8e2b653bd0
1 changed files with 2 additions and 1 deletions
|
@ -223,7 +223,8 @@ and no other programs are accessing your profile folders, then try again."""))
|
||||||
if os.path.exists(p):
|
if os.path.exists(p):
|
||||||
return p
|
return p
|
||||||
else:
|
else:
|
||||||
return os.path.expanduser("~/Documents/Anki")
|
loc = QDesktopServices.storageLocation(QDesktopServices.DocumentsLocation)
|
||||||
|
return os.path.join(loc, "Anki")
|
||||||
|
|
||||||
def _loadMeta(self):
|
def _loadMeta(self):
|
||||||
path = os.path.join(self.base, "prefs.db")
|
path = os.path.join(self.base, "prefs.db")
|
||||||
|
|
Loading…
Reference in a new issue