core: experimental import of my._init_hook to configure logging/warnings/env variables

This commit is contained in:
Dima Gerasimov 2023-06-21 02:58:17 +01:00
parent c12224af74
commit 47aa3e61b9
2 changed files with 11 additions and 0 deletions

View file

@ -37,3 +37,13 @@ __all__ = [
'dataclass', 'Path',
]
## experimental for now
# you could put _init_hook.py next to your private my/config
# that way you can configure logging/warnings/env variables on every HPI import
try:
import my._init_hook # type: ignore[import]
except:
pass
##