Fix cwd changing on export

No longer required after #1656
This commit is contained in:
Damien Elmes 2022-04-21 16:38:32 +10:00
parent 6ea75df292
commit e6d990a44e

View file

@ -370,7 +370,6 @@ class AnkiPackageExporter(AnkiExporter):
p = path.replace(".apkg", ".media.db2") p = path.replace(".apkg", ".media.db2")
if os.path.exists(p): if os.path.exists(p):
os.unlink(p) os.unlink(p)
os.chdir(self.mediaDir)
shutil.rmtree(path.replace(".apkg", ".media")) shutil.rmtree(path.replace(".apkg", ".media"))
return media return media