From ab08eada81eb1cc466b3d198c3e142f186d3d7a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Wed, 9 Dec 2015 10:05:17 -0600 Subject: [PATCH] Fixed TWBlue in non-ascii paths --- README.md | 3 +-- src/paths.py | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b31bbea9..9891af55 100644 --- a/README.md +++ b/README.md @@ -68,9 +68,8 @@ setuptools install a script, called easy_install. You can find it in the python * pygeocoder * suds * arrow -* goslate * markdown -* pocket +* winpaths easy_install will automatically get the additional libraries that these packages need to work properly. Run the following command to quickly install and upgrade all packages and their dependencies: diff --git a/src/paths.py b/src/paths.py index da103f01..7e45bb73 100644 --- a/src/paths.py +++ b/src/paths.py @@ -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):