mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
fix base folder location on windows
This commit is contained in:
parent
2d25069936
commit
15ca733f14
1 changed files with 5 additions and 1 deletions
|
|
@ -249,7 +249,11 @@ and no other programs are accessing your profile folders, then try again."""))
|
||||||
def _defaultBase(self):
|
def _defaultBase(self):
|
||||||
if isWin:
|
if isWin:
|
||||||
loc = QStandardPaths.writableLocation(QStandardPaths.AppDataLocation)
|
loc = QStandardPaths.writableLocation(QStandardPaths.AppDataLocation)
|
||||||
return os.path.join(loc, "Anki2")
|
# the returned value seem to automatically include the app name, but we use Anki2 rather
|
||||||
|
# than Anki
|
||||||
|
assert loc.endswith("/Anki")
|
||||||
|
loc += "2"
|
||||||
|
return loc
|
||||||
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 a new issue