From 419d47afd30d042d01e5a8911fa12e16690f3c29 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 9 May 2014 09:16:09 +0200 Subject: [PATCH] Split paths correctly in get_standard_dir --- qutebrowser/utils/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/utils/misc.py b/qutebrowser/utils/misc.py index efd144468..83b84579a 100644 --- a/qutebrowser/utils/misc.py +++ b/qutebrowser/utils/misc.py @@ -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):