Fix for non-ascii usernames
This commit is contained in:
parent
6a6444cb8c
commit
b4518a225c
1 changed files with 3 additions and 3 deletions
|
@ -28,8 +28,8 @@ def osVer():
|
||||||
|
|
||||||
def getDataDir():
|
def getDataDir():
|
||||||
if isOSX():
|
if isOSX():
|
||||||
return os.path.join(str(QDesktopServices.storageLocation(QDesktopServices.DataLocation)), "Pesterchum/")
|
return os.path.join(str(QDesktopServices.storageLocation(QDesktopServices.DataLocation).toLatin1()), "Pesterchum/")
|
||||||
elif isLinux():
|
elif isLinux():
|
||||||
return os.path.join(str(QDesktopServices.storageLocation(QDesktopServices.HomeLocation)), ".pesterchum/")
|
return os.path.join(str(QDesktopServices.storageLocation(QDesktopServices.HomeLocation).toLatin1()), ".pesterchum/")
|
||||||
else:
|
else:
|
||||||
return os.path.join(str(QDesktopServices.storageLocation(QDesktopServices.DataLocation)), "pesterchum/")
|
return os.path.join(str(QDesktopServices.storageLocation(QDesktopServices.DataLocation).toLatin1()), "pesterchum/")
|
||||||
|
|
Loading…
Reference in a new issue