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():
|
||||
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():
|
||||
return os.path.join(str(QDesktopServices.storageLocation(QDesktopServices.HomeLocation)), ".pesterchum/")
|
||||
return os.path.join(str(QDesktopServices.storageLocation(QDesktopServices.HomeLocation).toLatin1()), ".pesterchum/")
|
||||
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