Fixed TWBlue in non-ascii paths

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

View File

@ -68,9 +68,8 @@ setuptools install a script, called easy_install. You can find it in the python
* pygeocoder * pygeocoder
* suds * suds
* arrow * arrow
* goslate
* markdown * markdown
* pocket * winpaths
easy_install will automatically get the additional libraries that these packages need to work properly. 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: Run the following command to quickly install and upgrade all packages and their dependencies:

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) # data_path = os.path.join(shlobj.SHGetFolderPath(0, shlobj.CSIDL_APPDATA), app_name)
# else: # else:
if platform.system() == "Windows": 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: else:
data_path = os.path.join(os.environ['HOME'], ".%s" % app_name) data_path = os.path.join(os.environ['HOME'], ".%s" % app_name)
if not os.path.exists(data_path): if not os.path.exists(data_path):