diff --git a/pylib/anki/exporting.py b/pylib/anki/exporting.py index 1c6398aaa..8e5954d84 100644 --- a/pylib/anki/exporting.py +++ b/pylib/anki/exporting.py @@ -370,7 +370,6 @@ class AnkiPackageExporter(AnkiExporter): p = path.replace(".apkg", ".media.db2") if os.path.exists(p): os.unlink(p) - os.chdir(self.mediaDir) shutil.rmtree(path.replace(".apkg", ".media")) return media