puzzlestream.backend.config module

Configuration module.

contains PSConfig

class puzzlestream.backend.config.PSConfig(*args)[source]

Bases: dict

Configuration class.

This class holds all general Puzzlestream configuration settings. One configuration object per Puzzlestream instance is intended. Settings are saved in the user_config_dir (provided by appdirs) automatically as a json file when a setting is changed.

addRecentProject(path)[source]

Add path to recently used projects.

property edited

Edit signal that is emitted when a config value changes.

load()[source]

Load config from file if the file exists and set default values.

save()[source]

Run save thread in background.

The background thread creates the user_config_dir if necessary and dumps the config as a json file.