dwave.cloud.config.get_default_configfile_path#

get_default_configfile_path(**kwargs) str[source]#

Return the default configuration-file path.

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

Parameters:

**kwargs – Arguments passed-thru to get_configfile_paths().

Returns:

Configuration file path.

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)   
['/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()   
'/home/mary/.config/dwave/dwave.conf'