From b4518a225c9b85341df002a0c3a91c555461bd8e Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Tue, 6 Dec 2011 11:23:23 -0800 Subject: [PATCH] Fix for non-ascii usernames --- ostools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ostools.py b/ostools.py index 11ef58b..83e97f6 100644 --- a/ostools.py +++ b/ostools.py @@ -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/")