mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
use QStandardPaths instead of the env var
This commit is contained in:
parent
bcaf5762ec
commit
c2f7b48a29
1 changed files with 2 additions and 1 deletions
|
@ -248,7 +248,8 @@ and no other programs are accessing your profile folders, then try again."""))
|
|||
|
||||
def _defaultBase(self):
|
||||
if isWin:
|
||||
return os.path.join(os.environ["APPDATA"], "Anki2")
|
||||
loc = QStandardPaths.writableLocation(QStandardPaths.AppDataLocation)
|
||||
return os.path.join(loc, "Anki2")
|
||||
elif isMac:
|
||||
return os.path.expanduser("~/Library/Application Support/Anki2")
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue