mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04: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"))
|
||||
except:
|
||||
pass
|
||||
if os.path.exists(oldConf) and not os.path.exists(oldConf.replace(
|
||||
"config.db", "config.db.old")):
|
||||
if (oldConf and os.path.exists(oldConf) and not os.path.exists(
|
||||
oldConf.replace("config.db", "config.db.old"))):
|
||||
try:
|
||||
shutil.copy2(oldConf,
|
||||
os.path.expanduser("~/.anki/config.db"))
|
||||
|
|
Loading…
Reference in a new issue