mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix for FileIO exception when deleting a profile from windows
This commit is contained in:
parent
58935afba7
commit
f3847daae4
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,10 @@ class MediaManager(object):
|
|||
return
|
||||
self.db.close()
|
||||
self.db = None
|
||||
# reset our path to ~/Anki
|
||||
anki_dir = os.path.dirname( os.path.dirname(self.col.path) )
|
||||
os.chdir(anki_dir)
|
||||
|
||||
|
||||
def dir(self):
|
||||
return self._dir
|
||||
|
|
Loading…
Reference in a new issue