This commit is contained in:
Your Name 2024-04-30 15:19:15 +00:00
parent 0afcf2a10c
commit 016eb7cc51
1 changed files with 8 additions and 1 deletions

View File

@ -2,7 +2,9 @@ Define this function in your config.py
```
import os
from qutebrowser.api import config as api_config
import traceback
from qutebrowser.utils import debug, log
sCONFIG_DIR = config.configdir
def config_load_configs(lArgs: list|None = None, sDir: str = sCONFIG_DIR) -> None:
i = 0
@ -45,3 +47,8 @@ Then load the configs:
i = config_load_configs(lCONFIGS)
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