Config¶
Use this module when you need to expand cihai configuration dictionaries before passing them to
cihai.core.Cihai. Most users only need cihai.config.expand_config() indirectly
through the application object.
Configuration options for Cihai app.
Expand configuration XDG variables, environmental variables, and tildes.
Notes
Environmentable variables are expanded via
os.path.expandvars(). So${PWD}would be replaced by the current PWD in the shell,${USER}would be the user running the app.XDG variables are expanded via
str.format(). These do not have a dollar sign. They are:{user_cache_dir}{user_config_dir}{user_data_dir}{user_log_dir}{site_config_dir}{site_data_dir}
See also