From f1ce821910921bc41c5b215ef5bb5259ac688c52 Mon Sep 17 00:00:00 2001 From: Dmitry Belyaev Date: Sat, 30 Nov 2013 00:42:15 +0400 Subject: [PATCH] fix AppdataFolder encoding on windows --- src/shared.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared.py b/src/shared.py index 2404ff15..09306651 100644 --- a/src/shared.py +++ b/src/shared.py @@ -146,7 +146,7 @@ def lookupAppdataFolder(): sys.exit() elif 'win32' in sys.platform or 'win64' in sys.platform: - dataFolder = path.join(environ['APPDATA'], APPNAME) + '\\' + dataFolder = path.join(environ['APPDATA'].decode(sys.getfilesystemencoding(), 'ignore'), APPNAME) + path.sep else: from shutil import move try: