This commit is contained in:
Your Name 2024-04-30 15:19:15 +00:00
parent 0afcf2a10c
commit 016eb7cc51

View File

@ -2,7 +2,9 @@ Define this function in your config.py
``` ```
import os import os
from qutebrowser.api import config as api_config import traceback
from qutebrowser.utils import debug, log
sCONFIG_DIR = config.configdir sCONFIG_DIR = config.configdir
def config_load_configs(lArgs: list|None = None, sDir: str = sCONFIG_DIR) -> None: def config_load_configs(lArgs: list|None = None, sDir: str = sCONFIG_DIR) -> None:
i = 0 i = 0
@ -45,3 +47,8 @@ Then load the configs:
i = config_load_configs(lCONFIGS) i = config_load_configs(lCONFIGS)
log.init.info(f'loaded {i} configs') log.init.info(f'loaded {i} configs')
``` ```
I think that this should be a standard function and a standard habit
of loading code snippets from a directory like:
~/.config/qutebrowser/configs