mirror of
https://github.com/ankitects/anki.git
synced 2025-11-15 00:57:13 -05:00
fix bug when APPDATA not defined
This commit is contained in:
parent
515408d6a5
commit
659821c7bb
1 changed files with 2 additions and 2 deletions
|
|
@ -89,8 +89,8 @@ def run():
|
||||||
os.makedirs(os.path.expanduser("~/.anki"))
|
os.makedirs(os.path.expanduser("~/.anki"))
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
if os.path.exists(oldConf) and not os.path.exists(oldConf.replace(
|
if (oldConf and os.path.exists(oldConf) and not os.path.exists(
|
||||||
"config.db", "config.db.old")):
|
oldConf.replace("config.db", "config.db.old"))):
|
||||||
try:
|
try:
|
||||||
shutil.copy2(oldConf,
|
shutil.copy2(oldConf,
|
||||||
os.path.expanduser("~/.anki/config.db"))
|
os.path.expanduser("~/.anki/config.db"))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue