Currently we have a config.py file which is in the source code. Ideally we want the user to not have to venture into the veff directory so they don't have to look at any source code. There needs to be an alternative place for a configuration to be loaded.
We can do two things
Attempt to load config.py from the top level directory by default. At the moment we load it from /veff, so that can be moved a directory up.
Allow the user to pass a --config parameter to the main process that tells __main__.py where to get the config from. Ideally this would use argparse from Python's standard library
In the event of config.py not being found and --config is not passed then we should log an error saying that the config could not be found and we should create a config.py containing some defaults at the top-level, to get the user started.
Currently we have a
config.py
file which is in the source code. Ideally we want the user to not have to venture into theveff
directory so they don't have to look at any source code. There needs to be an alternative place for a configuration to be loaded.We can do two things
config.py
from the top level directory by default. At the moment we load it from/veff
, so that can be moved a directory up.--config
parameter to the main process that tells__main__.py
where to get the config from. Ideally this would useargparse
from Python's standard libraryIn the event of
config.py
not being found and--config
is not passed then we should log an error saying that the config could not be found and we should create aconfig.py
containing some defaults at the top-level, to get the user started.