Return the highest-priority local configuration file.

Selects the top-ranked configuration file path from a list of candidates returned by get_configfile_paths(), or None if no candidate path exists.

Returns:Configuration file path.
Return type:str


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)   # doctest: +SKIP
>>> # Find highest-priority local configuration file
>>> config.get_configfile_path()   # doctest: +SKIP