summaryrefslogtreecommitdiff
path: root/qutebrowser/api
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2018-11-30 14:44:49 +0100
committerFlorian Bruhin <me@the-compiler.org>2018-11-30 14:46:00 +0100
commitda505c84c6dd50e1eecda8baf9bd2d2584efe9cd (patch)
tree5f1a174753e050500b1a667eaaa190382b3f9f21 /qutebrowser/api
parenta09b1a4e05074b0a737cbd7dea80d4b1d1582707 (diff)
downloadqutebrowser-da505c84c6dd50e1eecda8baf9bd2d2584efe9cd.tar.gz
qutebrowser-da505c84c6dd50e1eecda8baf9bd2d2584efe9cd.zip
Expose config.val to extension API
Diffstat (limited to 'qutebrowser/api')
-rw-r--r--qutebrowser/api/config.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/qutebrowser/api/config.py b/qutebrowser/api/config.py
new file mode 100644
index 000000000..c1394d46a
--- /dev/null
+++ b/qutebrowser/api/config.py
@@ -0,0 +1,26 @@
+# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
+
+# Copyright 2018 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
+#
+# This file is part of qutebrowser.
+#
+# qutebrowser is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# qutebrowser is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
+
+"""Access to the qutebrowser configuration."""
+
+import typing
+
+from qutebrowser.config import config
+
+val = typing.cast('config.ConfigContainer', None)