HPI/my/__init__.py
2019-10-12 01:22:14 +01:00

12 lines
425 B
Python

# TODO just eval setup file to populate paths etc?
# TODO note sure if it would
# TODO maybe just import everything?
# TODO how to make it mypy friendly? maybe defensive import? or mypy config? or interface file?
try:
import my_configuration
paths = my_configuration.paths # type: ignore
except ImportError:
import warnings
warnings.warn("my_configuration package isn't found! That might result in issues")