Split paths correctly in get_standard_dir

This commit is contained in:
Florian Bruhin 2014-05-09 09:16:09 +02:00
parent a6f8602276
commit 419d47afd3

View File

@ -152,7 +152,7 @@ def get_standard_dir(typ):
path = path.replace('/', os.sep)
appname = QCoreApplication.instance().applicationName()
if (typ == QStandardPaths.ConfigLocation and
os.path.split(path)[-1] != appname):
path.split(os.sep)[-1] != appname):
# Workaround for https://bugreports.qt-project.org/browse/QTBUG-38872
path = os.path.join(path, appname)
if not os.path.exists(path):