From 20f80610be554a6a9513964ecf1d986af3055b9f Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 10 Apr 2016 17:47:04 +0200 Subject: [PATCH] Add some more logging for standarddir --- qutebrowser/utils/standarddir.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qutebrowser/utils/standarddir.py b/qutebrowser/utils/standarddir.py index b1676b795..87effe6e0 100644 --- a/qutebrowser/utils/standarddir.py +++ b/qutebrowser/utils/standarddir.py @@ -25,7 +25,7 @@ import os.path from PyQt5.QtCore import QCoreApplication, QStandardPaths -from qutebrowser.utils import log, qtutils +from qutebrowser.utils import log, qtutils, debug # The argparse namespace passed to init() @@ -124,6 +124,8 @@ def _writable_location(typ): """Wrapper around QStandardPaths.writableLocation.""" with qtutils.unset_organization(): path = QStandardPaths.writableLocation(typ) + typ_str = debug.qenum_key(QStandardPaths, typ) + log.misc.debug("writable location for {}: {}".format(typ_str, path)) if not path: raise ValueError("QStandardPaths returned an empty value!") # Qt seems to use '/' as path separator even on Windows...