saner with_my script + more examples in readme

This commit is contained in:
Dima Gerasimov 2019-10-12 01:22:14 +01:00
parent 2752bd6fd1
commit 1dda564a9e
4 changed files with 64 additions and 23 deletions

View file

@ -1,9 +1,12 @@
# TODO just eval setup file to populate paths etc?
# TODO note sure if it would
import my_configuration
# TODO maybe just import everything?
# TODO how to make it mypy friendly? maybe defensive import? or mypy config? or interface file?
paths = my_configuration.paths # type: ignore
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")