core: experimental import of my._init_hook to configure logging/warnings/env variables
This commit is contained in:
parent
c12224af74
commit
47aa3e61b9
2 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue