core: deprecate my.cfg, instead my.config can (and should be) used directly

This commit is contained in:
Dima Gerasimov 2021-02-19 00:39:20 +00:00 committed by karlicoss
parent ddbb2e5f23
commit a3305677b2
2 changed files with 15 additions and 33 deletions

View file

@ -1,19 +1,8 @@
"""
A helper to allow configuring the modules dynamically.
Usage:
from my.cfg import config
After that, you can set config attributes:
class user_config:
export_path = '/path/to/twitter/exports'
config.twitter = user_config
"""
# TODO do I really need it?
# todo why do we bring this into scope? don't remember..
import my.config as config
from .core import __NOT_HPI_MODULE__
from .core import warnings as W
# still used in Promnesia, maybe in dashboard?
W.high("DEPRECATED! Please import my.config directly instead.")