From 263e125aa87e762f848e305d8d349a641b6d3dbd Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 29 Jun 2022 02:40:30 +0200 Subject: [PATCH] AppLocalDataLocation --- ostools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ostools.py b/ostools.py index e5ba76d..d3b00a2 100644 --- a/ostools.py +++ b/ostools.py @@ -34,10 +34,10 @@ def getDataDir(): # in the Pesterchum install directory (like before) try: if isOSX(): - return os.path.join(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.DataLocation), "Pesterchum/") + return os.path.join(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.AppLocalDataLocation), "Pesterchum/") elif isLinux(): return os.path.join(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.HomeLocation), ".pesterchum/") else: - return os.path.join(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.DataLocation), "pesterchum/") + return os.path.join(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.AppLocalDataLocation), "pesterchum/") except UnicodeDecodeError: return ''