add helper for setting the config dynamically

This commit is contained in:
Dima Gerasimov 2020-04-14 20:14:58 +01:00
parent 1273b0ca61
commit 811303fcb1

19
my/cfg.py Normal file
View file

@ -0,0 +1,19 @@
"""
A helper to allow configuring the modules dynamically.
Usage:
from my.cfg import config
After that, you can set config attributes:
from types import SimpleNamespace
config.twitter = SimpleNamespace(
export_path='/path/to/twitter/exports',
)
"""
# TODO later, If I have config stubs that might be unnecessary too..
from . import init
import my.config as config