Configuration

Inheritance diagram of tools.config
class Config(fl)[source]

Class holds constants from config.json. These variables are set and held from one vocal session to another to make the ux a little smoother. Use CONF in constants.py to access the class. See self.get_variable_dict for adding config entries

get_config()[source]

Loads the config file and sets it as a dictionary

get_variable_dict()[source]

Returns a dictionary of keys corresponding to keys in the config file and variables corresponding to the keys’ respective values. To add an entry to the config, you must add an entry here and create the initial variable value in the __init__. Make sure to use descriptive keys.

get_variables()[source]

Turn all of the entries in the dictionary into variables

write_config()[source]

Write all of the changes to variables to the dictionary, save the dictionary as a json

class ConfigBooleanSetting(bl)[source]

Simple class to store and change booleans in the config file

value()[source]

Makes it easier to iterate through a combination of config files and booleans

class ConfigFileSetting(setting)[source]

Simple class to make it easier to get file names and locations from the config file

value()[source]

Makes it easier to iterate through a combination of config files and booleans