mne.set_config

mne.set_config(key, value, home_dir=None, set_env=True)[source]

Set a MNE-Python preference key in the config file and environment.

Parameters:

key : str | None

The preference key to set. If None, a tuple of the valid keys is returned, and value and home_dir are ignored.

value : str | None

The value to assign to the preference key. If None, the key is deleted.

home_dir : str | None

The folder that contains the .mne config folder. If None, it is found automatically.

set_env : bool

If True (default), update os.environ in addition to updating the MNE-Python config file.

See also

get_config