From e6d990a44e2f1d3ef9dfb1303c6049f749dd01f0 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 21 Apr 2022 16:38:32 +1000 Subject: [PATCH] Fix cwd changing on export No longer required after #1656 --- pylib/anki/exporting.py | 1 - 1 file changed, 1 deletion(-) 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