dwave.cloud.config.get_default_configfile_pathΒΆ

get_default_configfile_path()[source]ΒΆ

Return the default configuration-file path.

Typically returns a user-local configuration file; e.g: ~/.config/dwave/dwave.conf.

Returns:Configuration file path.
Return type:str

Examples

This example displays the default configuration file on an Ubuntu Linux system.

>>> from dwave.cloud import config
>>> # Display paths
>>> config.get_configfile_paths(only_existing=False)   # doctest: +SKIP
['/etc/xdg/xdg-ubuntu/dwave/dwave.conf',
 '/usr/share/upstart/xdg/dwave/dwave.conf',
 '/etc/xdg/dwave/dwave.conf',
 '/home/mary/.config/dwave/dwave.conf',
 './dwave.conf']
>>> # Find default configuration path
>>> config.get_default_configfile_path()   # doctest: +SKIP
'/home/mary/.config/dwave/dwave.conf'