Add a (broken) get command.

This commit is contained in:
Florian Bruhin 2014-03-09 19:25:15 +01:00
parent ce07baa901
commit f0f8168ed2
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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: