mtt icon indicating copy to clipboard operation
mtt copied to clipboard

Global MTT Config

Open ribab opened this issue 6 years ago • 0 comments

This idea is to have optional system/local config files for MTT. These config files are to set default options that can be overrided by either pyclient command-line arguments or by MTTDefaults in the INI file.

The file structure could look something like this:

File in /etc/mtt/mtt.cfg or ~/.mtt/mtt.cfg
verbose=True
skip-sections=*Database
plugin-dir=/path/to/proprietary/plugins

Also another idea to go along with this is a list of environment variables for MTT to load by default before starting (but only load the env vars that don't already exist), like:

File in /etc/mtt/mtt.env
MTT_ARGS="--verbose --some-other-arg"
HEADNODE_NAME=coolest_system_ever
MTT_DATABASE_IP=192.168.0.1

ribab avatar Dec 01 '18 02:12 ribab