saner with_my script + more examples in readme
This commit is contained in:
parent
2752bd6fd1
commit
1dda564a9e
4 changed files with 64 additions and 23 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue