fix for FileIO exception when deleting a profile from windows

This commit is contained in:
mikem 2012-01-29 19:15:12 +09:00
parent 58935afba7
commit f3847daae4

View file

@ -41,6 +41,10 @@ class MediaManager(object):
return return
self.db.close() self.db.close()
self.db = None 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): def dir(self):
return self._dir return self._dir