HPI/my/__init__.py
2019-11-07 19:18:54 +00:00

13 lines
457 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")
paths = None # type: ignore