get_configfile_paths(system=True, user=True, local=True, only_existing=True)[source]

Return a list of local configuration file paths.

Search paths for configuration files on the local system are based on homebase and depend on operating system; for example, for Linux systems these might include dwave.conf in the current working directory (CWD), user-local .config/dwave/, and system-wide /etc/dwave/.

  • system (boolean, default=True) – Search for system-wide configuration files.

  • user (boolean, default=True) – Search for user-local configuration files.

  • local (boolean, default=True) – Search for local configuration files (in CWD).

  • only_existing (boolean, default=True) – Return only paths for files that exist on the local system.


List of configuration file paths.

Return type



This example displays all paths to configuration files on a Windows system running Python 2.7 and then finds the single existing configuration file.

>>> from dwave.cloud.config import get_configfile_paths
>>> # Display paths
>>> get_configfile_paths(only_existing=False)   
>>> # Find existing files
>>> get_configfile_paths()