mistk.cfg package¶
Module contents¶
-
mistk.cfg.
get
(section, key, fallback=None)¶ Retrieves the configuration property with the key provided in the section specified
- Parameters
section – The section of the ConfigParser in which to search for the property key
key – The property key
fallback – The fall back value of the property to return if the key does not exist. Defaults to None.
- Returns
The property value if it exists, None otherwise.
-
mistk.cfg.
get_config
(file='/home/tsiedlec/git/streamlinedml-master-git/mistk/mistk/cfg/../../conf/mistk_config.ini') → configparser.ConfigParser¶ Retrieves a ConfigParser that has a MISTK Config file loaded.
- Parameters
file – The path to the configuration file that will be loaded. Defaults to the file location defined by the environment variable MISTK_CONFIG_FILE
- Returns
A ConfigParser with loaded configuration file.