Fixed TWBlue in non-ascii paths

This commit is contained in:
2015-12-09 10:05:17 -06:00
parent 5fcc1de9a5
commit ab08eada81
2 changed files with 3 additions and 3 deletions

View File

@@ -55,7 +55,8 @@ def data_path(app_name='TW blue'):
# data_path = os.path.join(shlobj.SHGetFolderPath(0, shlobj.CSIDL_APPDATA), app_name)
# else:
if platform.system() == "Windows":
data_path = os.path.join(os.getenv("AppData"), app_name)
import winpaths
data_path = os.path.join(winpaths.get_appdata(), app_name)
else:
data_path = os.path.join(os.environ['HOME'], ".%s" % app_name)
if not os.path.exists(data_path):