mne_lsl.lsl.set_config_filename🔗

mne_lsl.lsl.set_config_filename(filename)[source]🔗

Set a custom configuration file for liblsl.

Override the file from which liblsl loads its configuration. By default, liblsl looks for a configuration file in the current working directory, in the home directory, and in the system-wide configuration directory (see Network Connectivity in the LSL wiki).

Parameters:
filenamestr | Path

Path to the configuration file to load.

Notes

This function must be called before any other liblsl operation, e.g. before creating a StreamInfo, StreamInlet or StreamOutlet, as the configuration is loaded once on the first call requiring it. It requires liblsl >= 1.17.7.