Fix trying to decode str on windows
This commit is contained in:
parent
722f275172
commit
8652fef620
|
@ -49,11 +49,8 @@ def lookupAppdataFolder():
|
||||||
sys.exit(
|
sys.exit(
|
||||||
'Could not find home folder, please report this message'
|
'Could not find home folder, please report this message'
|
||||||
' and your OS X version to the BitMessage Github.')
|
' and your OS X version to the BitMessage Github.')
|
||||||
elif 'win32' in sys.platform or 'win64' in sys.platform:
|
elif sys.platform.startswith('win'):
|
||||||
dataFolder = os.path.join(
|
dataFolder = os.path.join(os.environ['APPDATA'], APPNAME) + os.path.sep
|
||||||
os.environ['APPDATA'].decode(
|
|
||||||
sys.getfilesystemencoding(), 'ignore'), APPNAME
|
|
||||||
) + os.path.sep
|
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
dataFolder = os.path.join(os.environ['XDG_CONFIG_HOME'], APPNAME)
|
dataFolder = os.path.join(os.environ['XDG_CONFIG_HOME'], APPNAME)
|
||||||
|
|
Reference in New Issue
Block a user