fix AppdataFolder encoding on windows

This commit is contained in:
Dmitry Belyaev 2013-11-30 00:42:15 +04:00
parent 34ca45160d
commit f1ce821910

View File

@ -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: