From f0f8168ed21de3ce1d40e640232e44ba7d863e9c Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 9 Mar 2014 19:25:15 +0100 Subject: [PATCH] Add a (broken) get command. --- qutebrowser/app.py | 1 + qutebrowser/config/config.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/qutebrowser/app.py b/qutebrowser/app.py index a331b8caf..65acb218e 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -85,6 +85,7 @@ class QuteBrowser(QApplication): self._quit_status = {} self._timers = [] self._shutting_down = False + self.config = config.config sys.excepthook = self._exception_hook diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py index 53b6ae038..bdcc7248d 100644 --- a/qutebrowser/config/config.py +++ b/qutebrowser/config/config.py @@ -27,6 +27,7 @@ from configparser import (ConfigParser, ExtendedInterpolation, NoSectionError, #from qutebrowser.utils.misc import read_file import qutebrowser.config.configdata as configdata +import qutebrowser.commands.utils as cmdutils config = None state = None @@ -141,6 +142,7 @@ class NewConfig: lines += keyval_wrapper.wrap(keyval) return lines + @cmdutils.register(instance='config') def get(self, section, option, fallback=_UNSET): """Get the real (transformed) value from a section/option.""" try: