dwave.cloud.config.get_configfile_path¶
- get_configfile_path()[source]¶
Return the highest-priority local configuration file.
Selects the top-ranked configuration file path from a list of candidates returned by
get_configfile_paths()
, orNone
if no candidate path exists.- Returns
Configuration file path.
- Return type
Examples
This example displays the highest-priority configuration file on a Windows system.
>>> from dwave.cloud import config >>> # Display paths >>> config.get_configfile_paths(only_existing=False) ['C:\ProgramData\dwavesystem\dwave\dwave.conf', 'C:\Users\jane\AppData\Local\dwavesystem\dwave\dwave.conf', '.\dwave.conf'] >>> # Find highest-priority local configuration file >>> config.get_configfile_path() 'C:\Users\jane\AppData\Local\dwavesystem\dwave\dwave.conf'