From bacaf4a3a80633458a1a30cc38b734322397daa5 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 15 Dec 2010 03:53:15 +0900 Subject: [PATCH] don't import unicode paths on win32 --- ankiqt/ui/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 61c04f687..e05aedc65 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -2620,6 +2620,8 @@ This deck already exists on your computer. Overwrite the local copy?"""), def pluginsFolder(self): dir = self.config.configPath + if sys.platform.startswith("win32"): + dir = dir.encode(sys.getfilesystemencoding()) return os.path.join(dir, "plugins") def loadPlugins(self):