mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
change default Anki folder location on Linux to Documents/Anki
(leave in ~/Anki for existing installs)
This commit is contained in:
parent
46a38f843e
commit
4619933e7e
1 changed files with 6 additions and 1 deletions
|
@ -204,7 +204,12 @@ a flash drive.""" % self.base)
|
||||||
elif isMac:
|
elif isMac:
|
||||||
return os.path.expanduser("~/Documents/Anki")
|
return os.path.expanduser("~/Documents/Anki")
|
||||||
else:
|
else:
|
||||||
return os.path.expanduser("~/Anki")
|
# use Documents/Anki on new installs, ~/Anki on existing ones
|
||||||
|
p = os.path.expanduser("~/Anki")
|
||||||
|
if os.path.exists(p):
|
||||||
|
return p
|
||||||
|
else:
|
||||||
|
return os.path.expanduser("~/Documents/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