mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-29 22:23:12 -06:00
Fixed TWBlue in non-ascii paths
This commit is contained in:
parent
5fcc1de9a5
commit
ab08eada81
@ -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:
|
||||||
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user