use QStandardPaths instead of the env var
This commit is contained in:
parent
bcaf5762ec
commit
c2f7b48a29
@ -248,7 +248,8 @@ and no other programs are accessing your profile folders, then try again."""))
|
|||||||
|
|
||||||
def _defaultBase(self):
|
def _defaultBase(self):
|
||||||
if isWin:
|
if isWin:
|
||||||
return os.path.join(os.environ["APPDATA"], "Anki2")
|
loc = QStandardPaths.writableLocation(QStandardPaths.AppDataLocation)
|
||||||
|
return os.path.join(loc, "Anki2")
|
||||||
elif isMac:
|
elif isMac:
|
||||||
return os.path.expanduser("~/Library/Application Support/Anki2")
|
return os.path.expanduser("~/Library/Application Support/Anki2")
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user