don't import unicode paths on win32

This commit is contained in:
Damien Elmes 2010-12-15 03:53:15 +09:00
parent 19ec6b2a1b
commit bacaf4a3a8

View file

@ -2620,6 +2620,8 @@ This deck already exists on your computer. Overwrite the local copy?"""),
def pluginsFolder(self): def pluginsFolder(self):
dir = self.config.configPath dir = self.config.configPath
if sys.platform.startswith("win32"):
dir = dir.encode(sys.getfilesystemencoding())
return os.path.join(dir, "plugins") return os.path.join(dir, "plugins")
def loadPlugins(self): def loadPlugins(self):