AppLocalDataLocation
This commit is contained in:
parent
b18d4c9aee
commit
263e125aa8
1 changed files with 2 additions and 2 deletions
|
@ -34,10 +34,10 @@ def getDataDir():
|
||||||
# in the Pesterchum install directory (like before)
|
# in the Pesterchum install directory (like before)
|
||||||
try:
|
try:
|
||||||
if isOSX():
|
if isOSX():
|
||||||
return os.path.join(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.DataLocation), "Pesterchum/")
|
return os.path.join(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.AppLocalDataLocation), "Pesterchum/")
|
||||||
elif isLinux():
|
elif isLinux():
|
||||||
return os.path.join(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.HomeLocation), ".pesterchum/")
|
return os.path.join(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.HomeLocation), ".pesterchum/")
|
||||||
else:
|
else:
|
||||||
return os.path.join(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.DataLocation), "pesterchum/")
|
return os.path.join(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.AppLocalDataLocation), "pesterchum/")
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
return ''
|
return ''
|
||||||
|
|
Loading…
Reference in a new issue