app.config module
- class Config
Bases:
object
- _load(file: TextIOWrapper, isUserConfig: bool = False)
loads the config from a file
- Parameters
file (TextIOWrapper) – file to load from
isUserConfig (bool, optional) – indicates if it’s a user made config. Defaults to False.
- save()
Saves the config to
`user_config.json
- _check_data(config: dict)
Checks if the data in the config is valid
- Parameters
config (dict) – config data
- restore_defaults()
Restores the config to the default values
- Raises
FileNotFoundError – if the default config file is not found