Rename my_configuration to mycfg for brevity
This commit is contained in:
parent
cd804091c3
commit
066641a4ce
31 changed files with 65 additions and 70 deletions
|
@ -1,13 +1,7 @@
|
|||
# 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
|
||||
import mycfg
|
||||
except ImportError:
|
||||
import warnings
|
||||
warnings.warn("my_configuration package isn't found! That might result in issues")
|
||||
paths = None # type: ignore
|
||||
warnings.warn("mycfg package isn't found! That might result in issues")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue