mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
fix exporting packaged decks w/ media on win32
This commit is contained in:
parent
a8e055e00e
commit
4bfdc04ac0
1 changed files with 2 additions and 1 deletions
|
@ -1630,10 +1630,11 @@ it to your friends.
|
|||
for f in os.listdir(mdir):
|
||||
zip.write(os.path.join(mdir, f),
|
||||
str(os.path.join("shared.media/", f)))
|
||||
os.chdir(pwd)
|
||||
shutil.rmtree(mdir)
|
||||
os.chdir(pwd)
|
||||
self.deck.updateProgress()
|
||||
zip.close()
|
||||
os.chdir(pwd)
|
||||
os.unlink(path)
|
||||
self.deck.finishProgress()
|
||||
self.onOpenPluginFolder(dir)
|
||||
|
|
Loading…
Reference in a new issue