From d059e3fdc271d851e4b6bf4b46868f6498268e06 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 16 Nov 2008 02:44:34 +0900 Subject: [PATCH] no need to copytree a file --- ankiqt/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ankiqt/config.py b/ankiqt/config.py index dbb9042e4..1a26f81cd 100644 --- a/ankiqt/config.py +++ b/ankiqt/config.py @@ -33,7 +33,7 @@ class Config(dict): if os.path.exists(oldDb): self.makeAnkiDir() newDb = self.getDbPath() - shutil.copytree(oldDb, newDb) + shutil.copy2(oldDb, newDb) self.makeAnkiDir() self.load()