From f41174138946fe9561cfcf46ed7016ccb10755d3 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 9 May 2014 09:13:08 +0200 Subject: [PATCH] Correct path separator on Windows --- qutebrowser/utils/misc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qutebrowser/utils/misc.py b/qutebrowser/utils/misc.py index b06bf23d9..efd144468 100644 --- a/qutebrowser/utils/misc.py +++ b/qutebrowser/utils/misc.py @@ -148,6 +148,8 @@ def get_standard_dir(typ): """ # FIXME we could easily add some unittests for this path = QStandardPaths.writableLocation(typ) + # Qt seems to use '/' as path separator even on Windows... + path = path.replace('/', os.sep) appname = QCoreApplication.instance().applicationName() if (typ == QStandardPaths.ConfigLocation and os.path.split(path)[-1] != appname):