From ebf378a945f99eec7e07e96e6f593c1e16949b87 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 22 Sep 2017 08:58:41 +0200 Subject: [PATCH] Add docs about importing modules in config.py --- doc/help/configuring.asciidoc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/help/configuring.asciidoc b/doc/help/configuring.asciidoc index dd2612045..3425fc924 100644 --- a/doc/help/configuring.asciidoc +++ b/doc/help/configuring.asciidoc @@ -211,6 +211,20 @@ doing: config.load_autoconfig = False ---- +Importing other modules +~~~~~~~~~~~~~~~~~~~~~~~ + +You can import any module from the +https://docs.python.org/3/library/index.html[Python standard library] (e.g. +`import os.path`), as well as any module installed in the environment +qutebrowser is run with. + +If you have an `utils.py` file in your qutebrowser config folder, you can import +that via `import utils` as well. + +While it's in some cases possible to import code from the qutebrowser +installation, doing so is unsupported and discouraged. + Handling errors ~~~~~~~~~~~~~~~